Commit 20399931 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

user32: Don't read preparsed data on non-HID devices.

parent 406459ea
...@@ -492,7 +492,8 @@ UINT WINAPI GetRawInputDeviceInfoW(HANDLE handle, UINT command, void *data, UINT ...@@ -492,7 +492,8 @@ UINT WINAPI GetRawInputDeviceInfoW(HANDLE handle, UINT command, void *data, UINT
case RIDI_PREPARSEDDATA: case RIDI_PREPARSEDDATA:
avail_bytes = *data_size; avail_bytes = *data_size;
if (handle == WINE_MOUSE_HANDLE || handle == WINE_KEYBOARD_HANDLE) if (handle == WINE_MOUSE_HANDLE || handle == WINE_KEYBOARD_HANDLE ||
device->info.dwType != RIM_TYPEHID)
{ {
to_copy_bytes = 0; to_copy_bytes = 0;
*data_size = 0; *data_size = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment