Module: wine Branch: master Commit: ac6f176441599af676c339ed47a87adb6ecffde7 URL: https://source.winehq.org/git/wine.git/?a=commit;h=ac6f176441599af676c339ed4...
Author: Arkadiusz Hiler ahiler@codeweavers.com Date: Mon Oct 4 10:21:38 2021 +0200
hidclass.sys: Don't send WM_INPUT_DEVICE_CHANGE for WINEXINPUT devices.
For the same reason we don't send WM_INPUT messages.
Signed-off-by: Rémi Bernon rbernon@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/hidclass.sys/pnp.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/dlls/hidclass.sys/pnp.c b/dlls/hidclass.sys/pnp.c index a47af413dbd..dbf04c0a403 100644 --- a/dlls/hidclass.sys/pnp.c +++ b/dlls/hidclass.sys/pnp.c @@ -114,6 +114,8 @@ static void send_wm_input_device_change(BASE_DEVICE_EXTENSION *ext, LPARAM param RAWINPUT rawinput; INPUT input;
+ if (!IsEqualGUID( ext->class_guid, &GUID_DEVINTERFACE_HID )) return; + rawinput.header.dwType = RIM_TYPEHID; rawinput.header.dwSize = offsetof(RAWINPUT, data.hid.bRawData[2 * sizeof(USAGE)]); rawinput.header.hDevice = ULongToHandle(ext->u.pdo.rawinput_handle);