VirtualBox

Changeset 32932 in vbox for trunk/src


Ignore:
Timestamp:
Oct 6, 2010 7:27:46 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
66418
Message:

Main/HostImpl: Solaris DVD enumeration fix for USB CD/DVD drives.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/HostImpl.cpp

    r32931 r32932  
    20062006
    20072007    /*
    2008      * Check for removable media instead of "SCSI" so that we also include USB CD-ROMs.
     2008     * Check for "removable-media" or "hotpluggable" instead of "SCSI" so that we also include USB CD-ROMs.
    20092009     * As unfortunately the Solaris drivers only export these common properties.
    20102010     */
    20112011    int *pInt = NULL;
    2012     if (   di_prop_lookup_ints(DDI_DEV_T_ANY, Node, "removable-media", &pInt) > 0
    2013         && *pInt == 1)                                                                  /* Removable Media */
     2012    if (   di_prop_lookup_ints(DDI_DEV_T_ANY, Node, "removable-media", &pInt) >= 0
     2013        || di_prop_lookup_ints(DDI_DEV_T_ANY, Node, "hotpluggable", &pInt) >= 0)
    20142014    {
    20152015        if (di_prop_lookup_ints(DDI_DEV_T_ANY, Node, "inquiry-device-type", &pInt) > 0
Note: See TracChangeset for help on using the changeset viewer.

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