Changeset 31615 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Aug 12, 2010 6:12:39 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 64743
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r31575 r31615 661 661 if (hardDisk) 662 662 { 663 Bstr uuid; 664 hardDisk->COMGETTER(Id)(uuid.asOutParam()); 665 CHECK_ERROR(machine, AttachDevice(bstrController, u1, u2, DeviceType_HardDisk, uuid)); 663 CHECK_ERROR(machine, AttachDevice(bstrController, u1, u2, DeviceType_HardDisk, hardDisk)); 666 664 } 667 665 else … … 757 755 if (hardDisk) 758 756 { 759 Bstr uuid; 760 hardDisk->COMGETTER(Id)(uuid.asOutParam()); 761 rc = machine->AttachDevice(Bstr("LsiLogic"), GetOptState.uIndex, 0, DeviceType_HardDisk, uuid); 757 rc = machine->AttachDevice(Bstr("LsiLogic"), GetOptState.uIndex, 0, DeviceType_HardDisk, hardDisk); 762 758 if (FAILED(rc)) 763 759 CHECK_ERROR(machine, 764 760 AttachDevice(Bstr("BusLogic"), 765 761 GetOptState.uIndex, 0, 766 DeviceType_HardDisk, uuid));762 DeviceType_HardDisk, hardDisk)); 767 763 } 768 764 else -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageStorageController.cpp
r31568 r31615 287 287 /* attach a empty floppy/dvd drive after removing previous attachment */ 288 288 machine->DetachDevice(Bstr(pszCtl), port, device); 289 CHECK_ERROR(machine, AttachDevice(Bstr(pszCtl), port, device, deviceType, Bstr("")));289 CHECK_ERROR(machine, AttachDevice(Bstr(pszCtl), port, device, deviceType, NULL)); 290 290 } 291 291 } … … 411 411 { 412 412 machine->DetachDevice(Bstr(pszCtl), port, device); 413 rc = machine->AttachDevice(Bstr(pszCtl), port, device, DeviceType_DVD, Bstr(""));413 rc = machine->AttachDevice(Bstr(pszCtl), port, device, DeviceType_DVD, NULL); 414 414 } 415 415 } 416 416 else 417 417 { 418 rc = machine->AttachDevice(Bstr(pszCtl), port, device, DeviceType_DVD, Bstr(""));418 rc = machine->AttachDevice(Bstr(pszCtl), port, device, DeviceType_DVD, NULL); 419 419 } 420 420 } … … 501 501 if (hardDisk) 502 502 { 503 Bstr uuid; 504 hardDisk->COMGETTER(Id)(uuid.asOutParam()); 505 CHECK_ERROR(machine, AttachDevice(Bstr(pszCtl), port, device, DeviceType_HardDisk, uuid)); 503 CHECK_ERROR(machine, AttachDevice(Bstr(pszCtl), port, device, DeviceType_HardDisk, hardDisk)); 506 504 } 507 505 else … … 520 518 if ( !fRunTime 521 519 && !floppyAttachment) 522 CHECK_ERROR(machine, AttachDevice(Bstr(pszCtl), port, device, DeviceType_Floppy, Bstr("")));520 CHECK_ERROR(machine, AttachDevice(Bstr(pszCtl), port, device, DeviceType_Floppy, NULL)); 523 521 524 522 /* host drive? */
Note:
See TracChangeset
for help on using the changeset viewer.