Changeset 32931 in vbox
- Timestamp:
- Oct 6, 2010 6:42:27 AM (14 years ago)
- File:
-
- 1 edited
-
trunk/src/VBox/Main/HostImpl.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/HostImpl.cpp
r32780 r32931 2005 2005 PSOLARISDVD *ppDrives = (PSOLARISDVD *)pvArg; 2006 2006 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 { 2012 2015 if (di_prop_lookup_ints(DDI_DEV_T_ANY, Node, "inquiry-device-type", &pInt) > 0 2013 2016 && ( *pInt == DTYPE_RODIRECT /* CDROM */
Note:
See TracChangeset
for help on using the changeset viewer.

