HIDListenerIOKit: Avoid warning from USBmakebmRequestType

This commit is contained in:
Luke Street 2020-09-18 16:04:13 -04:00
parent 57cb96c1a7
commit 4a928dd2d7
1 changed files with 3 additions and 1 deletions

View File

@ -24,7 +24,9 @@ static bool getUSBStringDescriptor(const IUnknownPointer<IOUSBDeviceInterface182
// hard disk programming in the 80's! // hard disk programming in the 80's!
IOUSBDevRequest request; IOUSBDevRequest request;
request.bmRequestType = USBmakebmRequestType(kUSBIn, kUSBStandard, kUSBDevice); request.bmRequestType =
USBmakebmRequestType(static_cast<typeof kUSBRqDirnMask>(kUSBIn), static_cast<typeof kUSBRqTypeMask>(kUSBStandard),
static_cast<typeof kUSBRqRecipientMask>(kUSBDevice));
request.bRequest = kUSBRqGetDescriptor; request.bRequest = kUSBRqGetDescriptor;
request.wValue = (kUSBStringDesc << 8) | idx; request.wValue = (kUSBStringDesc << 8) | idx;
request.wIndex = 0x409; // english request.wIndex = 0x409; // english