- Timestamp:
- Jun 28, 2011 9:27:21 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageStorageController.cpp
r37525 r37674 283 283 { 284 284 bool fRunTime = (st == SessionType_Shared); 285 285 286 if (fRunTime) 286 287 { 287 if (devTypeRequested == DeviceType_HardDisk) 288 throw Utf8Str("Hard disk drives cannot be changed while the VM is running\n"); 289 else if (!RTStrICmp(pszMedium, "none")) 290 throw Utf8Str("Drives cannot be removed while the VM is running\n"); 291 else if (pszPassThrough) 288 if (pszPassThrough) 292 289 throw Utf8Str("Drive passthrough state cannot be changed while the VM is running\n"); 293 290 else if (pszBandwidthGroup) … … 647 644 case DeviceType_HardDisk: 648 645 { 649 if (fRunTime)650 throw Utf8Str("Hard disk attachments cannot be changed while the VM is running");651 652 646 // if there is anything attached at the given location, remove it 653 647 machine->DetachDevice(Bstr(pszCtl).raw(), port, device);
Note:
See TracChangeset
for help on using the changeset viewer.