Changeset 49447 in vbox
- Timestamp:
- Nov 12, 2013 11:22:56 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/ApplianceImplImport.cpp
r49446 r49447 2461 2461 { 2462 2462 /* We need a proper source format description */ 2463 ComObjPtr<MediumFormat> srcFormat;2464 2463 /* Which format to use? */ 2465 Utf8Str strSrcFormat = "VDI"; 2466 2467 std::set<Utf8Str> listURIs = Appliance::URIFromTypeOfVirtualDiskFormat("VMDK"); 2468 std::set<Utf8Str>::const_iterator itr = listURIs.find(di.strFormat); 2469 2470 if (itr != listURIs.end()) 2471 { 2472 strSrcFormat = "VMDK"; 2473 } 2474 2475 srcFormat = pSysProps->mediumFormat(strSrcFormat); 2464 Utf8Str strSrcFormat = typeOfVirtualDiskFormatFromURI(di.strFormat); 2465 2466 ComObjPtr<MediumFormat> srcFormat = pSysProps->mediumFormat(strSrcFormat); 2476 2467 if (srcFormat.isNull()) 2477 2468 throw setError(VBOX_E_NOT_SUPPORTED, 2478 tr("Could not find a valid medium format for the source disk '%s'"), 2469 tr("Could not find a valid medium format for the source disk '%s' " 2470 "Check correctness of the image format URL in the OVF description file."), 2479 2471 RTPathFilename(strSourceOVF.c_str())); 2480 2472
Note:
See TracChangeset
for help on using the changeset viewer.