- Timestamp:
- Jul 15, 2015 1:14:24 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/darwin/iokit.cpp
r52743 r56941 951 951 pCur->enmState = USBDEVICESTATE_USED_BY_HOST_CAPTURABLE; /* just a default, we'll try harder in a bit. */ 952 952 953 AssertBreak(darwinDictGetU8(PropsRef, CFSTR(kUSBDeviceClass), &pCur->bDeviceClass)); 954 /* skip hubs */ 953 /* Skip hubs. On 10.11 beta 3, the root hub simulations does not have a USBDeviceClass property, so 954 simply ignore failures to retrieve it. */ 955 if (!darwinDictGetU8(PropsRef, CFSTR(kUSBDeviceClass), &pCur->bDeviceClass)) 956 { 957 #ifdef VBOX_STRICT 958 char szTmp[80]; 959 Assert( darwinDictGetString(PropsRef, CFSTR("IOClassNameOverride"), szTmp, sizeof(szTmp)) 960 && strcmp(szTmp, "IOUSBRootHubDevice") == 0); 961 #endif 962 break; 963 } 955 964 if (pCur->bDeviceClass == 0x09 /* hub, find a define! */) 956 965 break; … … 970 979 AssertBreak(pCur->pszAddress); 971 980 pCur->bBus = u32LocationId >> 24; 972 AssertBreak(darwinDictGetU8(PropsRef, CFSTR("PortNum"), &pCur->bPort));981 darwinDictGetU8(PropsRef, CFSTR("PortNum"), &pCur->bPort); /* Not present in 10.11 beta 3, so ignore failure. (Is set to zero.) */ 973 982 uint8_t bSpeed; 974 983 AssertBreak(darwinDictGetU8(PropsRef, CFSTR(kUSBDevicePropertySpeed), &bSpeed));
Note:
See TracChangeset
for help on using the changeset viewer.