- Timestamp:
- Dec 15, 2010 2:40:30 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 68973
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageStorageController.cpp
r35115 r35136 73 73 ULONG device = ~0U; 74 74 bool fForceUnmount = false; 75 bool fSetMediumType = false; 75 76 MediumType_T mediumType = MediumType_Normal; 76 77 Bstr bstrComment; … … 215 216 if (RT_FAILURE(vrc)) 216 217 return errorArgument("Invalid hard disk type '%s'", ValueUnion.psz); 218 fSetMediumType = true; 217 219 break; 218 220 } … … 559 561 560 562 // set medium type, if so desired 561 if (pMedium2Mount && mediumType != MediumType_Normal)563 if (pMedium2Mount && fSetMediumType) 562 564 { 563 565 CHECK_ERROR(pMedium2Mount, COMSETTER(Type)(mediumType)); 566 throw Utf8Str("Failed to set the medium type"); 564 567 } 565 568
Note:
See TracChangeset
for help on using the changeset viewer.