From 4a928dd2d724f84143ca81d54a8c59b6accc4648 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Fri, 18 Sep 2020 16:04:13 -0400 Subject: [PATCH] HIDListenerIOKit: Avoid warning from USBmakebmRequestType --- lib/inputdev/HIDListenerIOKit.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/inputdev/HIDListenerIOKit.cpp b/lib/inputdev/HIDListenerIOKit.cpp index 70dccbc..a5d7298 100644 --- a/lib/inputdev/HIDListenerIOKit.cpp +++ b/lib/inputdev/HIDListenerIOKit.cpp @@ -24,7 +24,9 @@ static bool getUSBStringDescriptor(const IUnknownPointer(kUSBIn), static_cast(kUSBStandard), + static_cast(kUSBDevice)); request.bRequest = kUSBRqGetDescriptor; request.wValue = (kUSBStringDesc << 8) | idx; request.wIndex = 0x409; // english