VirtualBox

Ignore:
Timestamp:
Jul 11, 2007 8:21:57 AM (17 years ago)
Author:
vboxsync
Message:

Force disabling of CD/DVD passthrough mode if host drive is not
available.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DrvHostBase.cpp

    r3158 r3538  
    18481848        pThis->FileDevice = NIL_RTFILE;
    18491849#endif
     1850        /* Disable CD/DVD passthrough in case it was enabled. Would cause
     1851         * weird failures later when the guest issues commands. These would
     1852         * all fail because of the invalid file handle. So use the normal
     1853         * virtual CD/DVD code, which deals more gracefully with unavailable
     1854         * "media" - actually a complete drive in this case. */
     1855        pThis->IBlock.pfnSendCmd = NULL;
    18501856        AssertMsgFailed(("Could not open host device %s, rc=%Vrc\n", pszDevice, rc));
    18511857        switch (rc)
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