VirtualBox

Changeset 38329 in vbox


Ignore:
Timestamp:
Aug 5, 2011 3:18:40 PM (13 years ago)
Author:
vboxsync
Message:

Main/MachineImpl: Allow hotplugging of CD/DVD drives

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/MachineImpl.cpp

    r38099 r38329  
    34573457                        aControllerName);
    34583458
    3459     if (fHotplug && aType == DeviceType_DVD)
    3460         return setError(VBOX_E_INVALID_VM_STATE,
    3461                         tr("Attaching a DVD drive while the VM is running is not supported"));
    3462 
    34633459    // check that the port and device are not out of range
    34643460    rc = ctl->checkPortAndDeviceValid(aControllerPort, aDevice);
     
    38923888                        tr("No storage device attached to device slot %d on port %d of controller '%ls'"),
    38933889                        aDevice, aControllerPort, aControllerName);
    3894 
    3895     if (fHotplug && pAttach->getType() == DeviceType_DVD)
    3896         return setError(VBOX_E_INVALID_VM_STATE,
    3897                         tr("Detaching a DVD drive while the VM is running is not supported"));
    38983890
    38993891    /*
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