VirtualBox

Changeset 38330 in vbox


Ignore:
Timestamp:
Aug 5, 2011 3:19:55 PM (14 years ago)
Author:
vboxsync
Message:

FE/VBoxManage: Allow CD/DVD drive hotplugging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageStorageController.cpp

    r37929 r38330  
    384384                                                         fForceUnmount));
    385385                    }
     386                }
     387                else if (devTypeRequested == DeviceType_DVD)
     388                {
     389                    /*
     390                     * Try to attach an empty DVD drive as a hotplug operation.
     391                     * Main will complain if the controller doesn't support hotplugging.
     392                     */
     393                    CHECK_ERROR(machine, AttachDevice(Bstr(pszCtl).raw(), port, device,
     394                                                      devTypeRequested, NULL));
     395                    deviceType = DeviceType_DVD; /* To avoid the error message below. */
    386396                }
    387397
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette