mirror of https://github.com/AxioDL/boo.git
HIDListenerIOKit: Avoid warning from USBmakebmRequestType
This commit is contained in:
parent
57cb96c1a7
commit
4a928dd2d7
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue