VirtualBox

Ignore:
Timestamp:
May 1, 2012 6:14:46 PM (13 years ago)
Author:
vboxsync
Message:

use openMedium instead of findMedium

File:
1 edited

Legend:

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

    r40329 r41105  
    795795
    796796        Log(("Finding source disk \"%ls\"\n", bstrSrcFilePath.raw()));
     797
     798#if 0 // Substitute call to FindMedium to OpenMedium
    797799        HRESULT rc = mVirtualBox->FindMedium(bstrSrcFilePath.raw(), DeviceType_HardDisk, pSourceDisk.asOutParam());
     800#endif
     801        HRESULT rc  = mVirtualBox->OpenMedium(bstrSrcFilePath.raw(),
     802                                            DeviceType_HardDisk,
     803                                            AccessMode_ReadWrite,
     804                                            FALSE /* fForceNewUuid */,
     805                                            pSourceDisk.asOutParam());
    798806        if (FAILED(rc)) throw rc;
    799807
Note: See TracChangeset for help on using the changeset viewer.

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