Changeset 17741 in vbox
- Timestamp:
- Mar 12, 2009 12:39:34 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ApplianceImpl.cpp
r17718 r17741 2845 2845 /* This isn't allowed */ 2846 2846 throw setError(VBOX_E_FILE_ERROR, 2847 2848 2847 tr("Source virtual disk image file '%s' doesn't exist"), 2848 strSrcFilePath.c_str()); 2849 2849 2850 2850 // output filename … … 2864 2864 if (FAILED(rc)) throw rc; 2865 2865 2866 /* We need the format description of the source disk image */ 2867 Bstr bstrSrcFormat; 2868 rc = pSourceDisk->COMGETTER(Format)(bstrSrcFormat.asOutParam()); 2869 if (FAILED(rc)) throw rc; 2866 /* Based on the file extensions we choose the right format for the 2867 * disk */ 2868 Bstr bstrSrcFormat = L"VDI"; 2869 if (strTargetFilePath.endsWith(".vmdk")) 2870 bstrSrcFormat = L"VMDK"; 2870 2871 /* Create a new hard disk interface for the destination disk image */ 2871 2872 Log(("Creating target disk \"%s\"\n", strTargetFilePath.raw())); … … 3479 3480 default: 3480 3481 throw setError(VBOX_E_NOT_SUPPORTED, 3481 tr("Cannot handle hard disk attachment: storageBus is %d, channel is %d, device is %d"), storageBus, lChannel, lDevice);3482 tr("Cannot handle hard disk attachment: storageBus is %d, channel is %d, device is %d"), storageBus, lChannel, lDevice); 3482 3483 break; 3483 3484 }
Note:
See TracChangeset
for help on using the changeset viewer.