Zebediah Figura : user32: Return RIDI_DEVICENAME for HID devices from GetRawInputDeviceInfo().
Alexandre Julliard
julliard at winehq.org
Tue Aug 21 16:49:01 CDT 2018
Module: wine
Branch: master
Commit: 44551cfe19f93fffb515b082871a35ae58c09fc2
URL: https://source.winehq.org/git/wine.git/?a=commit;h=44551cfe19f93fffb515b082871a35ae58c09fc2
Author: Zebediah Figura <zfigura at codeweavers.com>
Date: Mon Aug 20 15:24:43 2018 -0500
user32: Return RIDI_DEVICENAME for HID devices from GetRawInputDeviceInfo().
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/user32/rawinput.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/dlls/user32/rawinput.c b/dlls/user32/rawinput.c
index 12a0e15..cf3028a 100644
--- a/dlls/user32/rawinput.c
+++ b/dlls/user32/rawinput.c
@@ -365,11 +365,17 @@ UINT WINAPI GetRawInputDeviceInfoW(HANDLE device, UINT command, void *data, UINT
s = sizeof(mouse_name);
name = mouse_name;
}
- else
+ else if (device == WINE_KEYBOARD_HANDLE)
{
s = sizeof(keyboard_name);
name = keyboard_name;
}
+ else
+ {
+ hid_device = device;
+ s = (strlenW(hid_device->path) + 1) * sizeof(WCHAR);
+ name = hid_device->path;
+ }
break;
case RIDI_DEVICEINFO:
s = sizeof(*info);
More information about the wine-cvs
mailing list