[PATCH] hidclass.sys: Don't send WM_INPUT_DEVICE_CHANGE for WINEXINPUT devices.

Rémi Bernon rbernon at codeweavers.com
Mon Oct 4 03:21:38 CDT 2021


From: Arkadiusz Hiler <ahiler at codeweavers.com>

For the same reason we don't send WM_INPUT messages.

Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
---
 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);
-- 
2.33.0




More information about the wine-devel mailing list