user32: Return RIDI_DEVICENAME for HID devices from GetRawInputDeviceInfo().

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2018-08-20 15:24:43 -05:00 committed by Alexandre Julliard
parent e745a482d1
commit 44551cfe19

View file

@ -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);