Changeset 107597 in vbox
- Timestamp:
- Jan 9, 2025 1:18:25 PM (3 months ago)
- svn:sync-xref-src-repo-rev:
- 166672
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/ApplianceImplPrivate.h
r107519 r107597 540 540 541 541 HRESULT restoreOriginalUUIDOfAttachedDevice(settings::MachineConfigFile *config); 542 HRESULTsaveOriginalUUIDOfAttachedDevice(settings::AttachedDevice &device, const Utf8Str &newlyUuid);542 void saveOriginalUUIDOfAttachedDevice(settings::AttachedDevice &device, const Utf8Str &newlyUuid); 543 543 RTVFSIOSTREAM claimOvaLookAHead(void); 544 544 }; -
trunk/src/VBox/Main/src-server/ApplianceImplImport.cpp
r107447 r107597 1605 1605 1606 1606 if ( hDir != NULL) 1607 { 1607 1608 vrc = RTDirClose(hDir); 1609 AssertRC(vrc); 1610 } 1608 1611 } 1609 1612 else … … 2494 2497 */ 2495 2498 char *pszOvfNameBase = NULL; 2496 size_t cchOvfNameBase = 0; NOREF(cchOvfNameBase);2497 2499 unsigned cLeftToFind = 3; 2498 2500 HRESULT hrc = S_OK; … … 2543 2545 *pszSuffix = '\0'; 2544 2546 pszOvfNameBase = pszName; 2545 cchOvfNameBase = strlen(pszName);2546 2547 pszName = NULL; 2547 2548 cLeftToFind--; … … 3783 3784 SafeIfaceArray<IMedium> aMedia; 3784 3785 hrc2 = failedMachine->Unregister(CleanupMode_DetachAllReturnHardDisksOnly, ComSafeArrayAsOutParam(aMedia)); 3786 if (FAILED(hrc2)) 3787 LogRel(("Appliance::i_importFS: Cleaning up failed import failed with hrc2 -> %Rhrc in IMachine::Unregister()\n", hrc2)); 3785 3788 ComPtr<IProgress> pProgress2; 3786 3789 hrc2 = failedMachine->DeleteConfig(ComSafeArrayAsInParam(aMedia), pProgress2.asOutParam()); 3790 if (FAILED(hrc2)) 3791 LogRel(("Appliance::i_importFS: Cleaning up failed import failed with hrc2 -> %Rhrc in IMachine::DeleteConfig()\n", hrc2)); 3787 3792 pProgress2->WaitForCompletion(-1); 3788 3793 } … … 4595 4600 if (stack.strFirmwareType.contains("32")) 4596 4601 firmwareType = FirmwareType_EFI32; 4597 if (stack.strFirmwareType.contains("64"))4602 else if (stack.strFirmwareType.contains("64")) 4598 4603 firmwareType = FirmwareType_EFI64; 4599 4604 else … … 6019 6024 */ 6020 6025 { 6021 hrc =stack.saveOriginalUUIDOfAttachedDevice(d, Utf8Str(hdId));6026 stack.saveOriginalUUIDOfAttachedDevice(d, Utf8Str(hdId)); 6022 6027 d.uuid = hdId; 6023 6028 } … … 6232 6237 } 6233 6238 6234 HRESULTAppliance::ImportStack::saveOriginalUUIDOfAttachedDevice(settings::AttachedDevice &device,6235 const Utf8Str &newlyUuid)6239 void Appliance::ImportStack::saveOriginalUUIDOfAttachedDevice(settings::AttachedDevice &device, 6240 const Utf8Str &newlyUuid) 6236 6241 { 6237 HRESULT hrc = S_OK;6238 6239 6242 /* save for restoring */ 6240 6243 mapNewUUIDsToOriginalUUIDs.insert(std::make_pair(newlyUuid, device.uuid.toString())); 6241 6242 return hrc;6243 6244 } 6244 6245
Note:
See TracChangeset
for help on using the changeset viewer.