VirtualBox

Ignore:
Timestamp:
Feb 24, 2015 11:09:17 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
98541
Message:

Main/VirtualBox: eliminate redundant parameter to i_registerMedium, avoiding bugs with registering e.g. floppy images as hard disks.
Main/Medium: switch over to CreateMedium, final API touch-ups, variable name cleanup, typo checking for backend support of fixed image creation, check for backends not supporting a particular device type
Frontends/VBoxManage: cleanup, adapt to new API, generalize all operations which worked on hard disks only to all device types
Frontends/VirtualBox: adapt to new API

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/ApplianceImplImport.cpp

    r53354 r54438  
    55
    66/*
    7  * Copyright (C) 2008-2014 Oracle Corporation
     7 * Copyright (C) 2008-2015 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    25212521
    25222522                /* Now create an empty hard disk. */
    2523                 rc = mVirtualBox->CreateHardDisk(Bstr(strTrgFormat).raw(),
    2524                                                  Bstr(*strTargetPath).raw(),
    2525                                                  ComPtr<IMedium>(pTargetHD).asOutParam());
     2523                rc = mVirtualBox->CreateMedium(Bstr(strTrgFormat).raw(),
     2524                                               Bstr(*strTargetPath).raw(),
     2525                                               AccessMode_ReadWrite, DeviceType_HardDisk,
     2526                                               ComPtr<IMedium>(pTargetHD).asOutParam());
    25262527                if (FAILED(rc)) throw rc;
    25272528
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette