VirtualBox

Changeset 32931 in vbox


Ignore:
Timestamp:
Oct 6, 2010 6:42:27 AM (14 years ago)
Author:
vboxsync
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

    r32780 r32931  
    20052005    PSOLARISDVD *ppDrives = (PSOLARISDVD *)pvArg;
    20062006
    2007     char *pszClass = NULL;
    2008     if (   di_prop_lookup_strings(DDI_DEV_T_ANY, Node, "class", &pszClass) > 0
    2009         && !strcmp(pszClass, "scsi"))                                                   /* SCSI */
    2010     {
    2011         int *pInt = NULL;
     2007    /*
     2008     * Check for removable media instead of "SCSI" so that we also include USB CD-ROMs.
     2009     * As unfortunately the Solaris drivers only export these common properties.
     2010     */
     2011    int *pInt = NULL;
     2012    if (   di_prop_lookup_ints(DDI_DEV_T_ANY, Node, "removable-media", &pInt) > 0
     2013        && *pInt == 1)                                                                  /* Removable Media */
     2014    {
    20122015        if (di_prop_lookup_ints(DDI_DEV_T_ANY, Node, "inquiry-device-type", &pInt) > 0
    20132016            && (   *pInt == DTYPE_RODIRECT                                              /* CDROM */
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