Changeset 17718 in vbox for trunk/src/VBox/Main
- Timestamp:
- Mar 11, 2009 6:57:27 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ApplianceImpl.cpp
r17699 r17718 2445 2445 2446 2446 std::list<VirtualSystemDescriptionEntry*> llName = vsdescThis->findByType(VirtualSystemDescriptionType_Name); 2447 if (llName.size() != 1) 2448 throw setError(VBOX_E_NOT_SUPPORTED, 2449 tr("Missing VM name")); 2450 pelmVirtualSystem->setAttribute("ovf:id", llName.front()->strVbox); 2447 2451 2448 2452 std::list<VirtualSystemDescriptionEntry*> llOS = vsdescThis->findByType(VirtualSystemDescriptionType_OS); … … 2868 2872 rc = pVirtualBox->CreateHardDisk(bstrSrcFormat, Bstr(strTargetFilePath), pTargetDisk.asOutParam()); 2869 2873 if (FAILED(rc)) throw rc; 2870 / * Clone the source disk image */2874 // clone the source disk image 2871 2875 rc = pSourceDisk->CloneTo(pTargetDisk, pProgress2.asOutParam()); 2872 2876 if (FAILED(rc)) throw rc; 2873 2877 2874 / * Advance to the next operation */2878 // advance to the next operation 2875 2879 if (!task->progress.isNull()) 2876 2880 task->progress->advanceOperation(BstrFmt(tr("Exporting virtual disk image '%s'"), strSrcFilePath.c_str())); … … 2888 2892 if (fCompleted) 2889 2893 break; 2890 / * Make sure the loop is not too tight */2894 // make sure the loop is not too tight 2891 2895 rc = pProgress2->WaitForCompletion(100); 2892 2896 if (FAILED(rc)) throw rc; … … 2909 2913 2910 2914 /* Make sure the target disk get detached */ 2911 rc = pTargetDisk->Close(); 2915 rc = pTargetDisk->Close(); // @todo close this also if an error is thrown above 2912 2916 if (FAILED(rc)) throw rc; 2913 2917 … … 3290 3294 bstrName = mUserData->mName; 3291 3295 // get description 3292 bstr Name= mUserData->mDescription;3296 bstrDescription = mUserData->mDescription; 3293 3297 // get guest OS 3294 3298 bstrGuestOSType = mUserData->mOSTypeId; … … 3345 3349 "", 3346 3350 strVMName, 3347 Utf8Str(bstrName));3351 strVMName); 3348 3352 3349 3353 /* CPU count*/
Note:
See TracChangeset
for help on using the changeset viewer.