Changeset 41236 in vbox
- Timestamp:
- May 10, 2012 1:46:50 PM (13 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp
r41120 r41236 238 238 return E_FAIL; 239 239 } 240 pszFilename = szFilenameAbs; 241 } 242 243 CHECK_ERROR(a->virtualBox, CreateHardDisk(Bstr(pszFormat).raw(), 244 Bstr(pszFilename).raw(), 245 pMedium.asOutParam())); 240 pszFilename = szFilenameAbs; 241 CHECK_ERROR(a->virtualBox, OpenMedium(Bstr(pszFilename).raw(), 242 DeviceType_Network, 243 AccessMode_ReadWrite, 244 /* fForceNewUuidOnOpen */ false, 245 pMedium.asOutParam())); 246 }else{ 247 248 CHECK_ERROR(a->virtualBox, CreateHardDisk(Bstr(pszFormat).raw(), 249 Bstr(pszFilename).raw(), 250 pMedium.asOutParam())); 251 } 246 252 return rc; 247 253 } -
trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp
r41232 r41236 1758 1758 * with the parent and this association needs to be broken. */ 1759 1759 1760 if (FAILED(rc)){ 1760 if (FAILED(rc)) 1761 { 1761 1762 pMedium->uninit(); 1762 1763 rc = VBOX_E_OBJECT_NOT_FOUND;
Note:
See TracChangeset
for help on using the changeset viewer.