Changeset 42538 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Aug 2, 2012 1:28:40 PM (12 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r42445 r42538 1025 1025 /* enable the controller */ 1026 1026 if (!floppyAttachment) 1027 CHECK_ERROR(machine, AttachDevice (Bstr("Floppy Controller").raw(),1028 0, 0,1029 DeviceType_Floppy, NULL));1027 CHECK_ERROR(machine, AttachDeviceWithoutMedium(Bstr("Floppy Controller").raw(), 1028 0, 0, 1029 DeviceType_Floppy)); 1030 1030 1031 1031 /* unmount? */ -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageStorageController.cpp
r42442 r42538 407 407 * Main will complain if the controller doesn't support hotplugging. 408 408 */ 409 CHECK_ERROR(machine, AttachDevice (Bstr(pszCtl).raw(), port, device,410 devTypeRequested, NULL));409 CHECK_ERROR(machine, AttachDeviceWithoutMedium(Bstr(pszCtl).raw(), port, device, 410 devTypeRequested)); 411 411 deviceType = DeviceType_DVD; /* To avoid the error message below. */ 412 412 } … … 445 445 /* attach a empty floppy/dvd drive after removing previous attachment */ 446 446 machine->DetachDevice(Bstr(pszCtl).raw(), port, device); 447 CHECK_ERROR(machine, AttachDevice (Bstr(pszCtl).raw(), port, device,448 deviceType, NULL));447 CHECK_ERROR(machine, AttachDeviceWithoutMedium(Bstr(pszCtl).raw(), port, device, 448 deviceType)); 449 449 } 450 450 } // end if (!RTStrICmp(pszMedium, "emptydrive")) … … 690 690 { 691 691 machine->DetachDevice(Bstr(pszCtl).raw(), port, device); 692 rc = machine->AttachDevice(Bstr(pszCtl).raw(), 693 port, 694 device, 695 devTypeRequested, // DeviceType_DVD or DeviceType_Floppy 696 NULL); 692 rc = machine->AttachDeviceWithoutMedium(Bstr(pszCtl).raw(), 693 port, 694 device, 695 devTypeRequested); // DeviceType_DVD or DeviceType_Floppy 697 696 } 698 697 } 699 698 else 700 699 { 701 rc = machine->AttachDevice(Bstr(pszCtl).raw(), 702 port, 703 device, 704 devTypeRequested, // DeviceType_DVD or DeviceType_Floppy 705 NULL); 700 rc = machine->AttachDeviceWithoutMedium(Bstr(pszCtl).raw(), 701 port, 702 device, 703 devTypeRequested); // DeviceType_DVD or DeviceType_Floppy 706 704 } 707 705 } … … 846 844 { 847 845 /* Just remove the bandwidth gorup. */ 848 CHECK_ERROR(machine, Set BandwidthGroupForDevice(Bstr(pszCtl).raw(),849 port, device, NULL));846 CHECK_ERROR(machine, SetNoBandwidthGroupForDevice(Bstr(pszCtl).raw(), 847 port, device)); 850 848 } 851 849 else
Note:
See TracChangeset
for help on using the changeset viewer.