user32: Free rawinput device preparsed data for mouse and keyboard.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c2c78a2fe0
commit
964bf9687b
|
@ -226,6 +226,8 @@ static void find_devices(void)
|
||||||
|
|
||||||
device->info.dwType = RIM_TYPEMOUSE;
|
device->info.dwType = RIM_TYPEMOUSE;
|
||||||
device->info.u.mouse = mouse_info;
|
device->info.u.mouse = mouse_info;
|
||||||
|
HidD_FreePreparsedData(device->data);
|
||||||
|
device->data = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
SetupDiDestroyDeviceInfoList(set);
|
SetupDiDestroyDeviceInfoList(set);
|
||||||
|
@ -241,6 +243,8 @@ static void find_devices(void)
|
||||||
|
|
||||||
device->info.dwType = RIM_TYPEKEYBOARD;
|
device->info.dwType = RIM_TYPEKEYBOARD;
|
||||||
device->info.u.keyboard = keyboard_info;
|
device->info.u.keyboard = keyboard_info;
|
||||||
|
HidD_FreePreparsedData(device->data);
|
||||||
|
device->data = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
SetupDiDestroyDeviceInfoList(set);
|
SetupDiDestroyDeviceInfoList(set);
|
||||||
|
|
Loading…
Reference in New Issue