- Timestamp:
- May 10, 2012 12:08:43 PM (13 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.h
r41120 r41232 226 226 /* VBoxManageDisk.cpp */ 227 227 HRESULT findMedium(HandlerArg *a, const char *pszFilenameOrUuid, 228 229 228 DeviceType_T enmDevType, bool fSilent, 229 ComPtr<IMedium> &pMedium); 230 230 HRESULT findOrOpenMedium(HandlerArg *a, const char *pszFilenameOrUuid, 231 231 DeviceType_T enmDevType, ComPtr<IMedium> &pMedium, -
trunk/src/VBox/Main/src-server/ApplianceImpl.cpp
r41120 r41232 627 627 /** @todo: Maybe too cost-intensive; try to find a lighter way */ 628 628 while ( RTPathExists(tmpName) 629 || mVirtualBox->OpenMedium(Bstr(tmpName).raw(), DeviceType_HardDisk, AccessMode_ReadWrite, FALSE /* fForceNewUuid */, &harddisk) 629 || mVirtualBox->OpenMedium(Bstr(tmpName).raw(), DeviceType_HardDisk, AccessMode_ReadWrite, FALSE /* fForceNewUuid */, &harddisk) != VBOX_E_OBJECT_NOT_FOUND 630 630 ) 631 631 { -
trunk/src/VBox/Main/src-server/ApplianceImplExport.cpp
r41120 r41232 795 795 796 796 Log(("Finding source disk \"%ls\"\n", bstrSrcFilePath.raw())); 797 797 HRESULT rc = mVirtualBox->OpenMedium(bstrSrcFilePath.raw(), DeviceType_HardDisk, AccessMode_ReadWrite, FALSE /* fForceNewUuid */, pSourceDisk.asOutParam()); 798 798 if (FAILED(rc)) throw rc; 799 799 -
trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp
r41231 r41232 1695 1695 IMedium **aMedium) 1696 1696 { 1697 HRESULT rc = S_OK; 1697 1698 CheckComArgStrNotEmptyOrNull(aLocation); 1698 1699 CheckComArgOutPointerValid(aMedium); … … 1713 1714 { 1714 1715 case DeviceType_HardDisk: 1715 findHardDiskByLocation(aLocation,1716 rc = findHardDiskByLocation(aLocation, 1716 1717 false, /* aSetError */ 1717 1718 &pMedium); … … 1720 1721 case DeviceType_Floppy: 1721 1722 case DeviceType_DVD: 1722 findDVDOrFloppyImage(deviceType,1723 rc = findDVDOrFloppyImage(deviceType, 1723 1724 NULL, /* guid */ 1724 1725 aLocation, … … 1732 1733 1733 1734 default: 1734 return setError(E_INVALIDARG, "Device type must be HardDisk, DVD or Floppy"); 1735 } 1736 1737 HRESULT rc = S_OK; 1735 return setError(E_INVALIDARG, "Device type must be HardDisk, DVD or Floppy %d", deviceType); 1736 } 1737 1738 1738 1739 1739 if (pMedium.isNull()) … … 1758 1758 * with the parent and this association needs to be broken. */ 1759 1759 1760 if (FAILED(rc)) 1760 if (FAILED(rc)){ 1761 1761 pMedium->uninit(); 1762 } 1762 rc = VBOX_E_OBJECT_NOT_FOUND; 1763 } 1764 } 1765 else 1766 rc = VBOX_E_OBJECT_NOT_FOUND; 1763 1767 } 1764 1768
Note:
See TracChangeset
for help on using the changeset viewer.