user32: Always refresh rawinput device list when requested.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Rémi Bernon 2021-05-04 10:24:52 +02:00 committed by Alexandre Julliard
parent d3ba02f35c
commit c2c78a2fe0
1 changed files with 0 additions and 6 deletions

View File

@ -166,8 +166,6 @@ static struct device *add_device(HDEVINFO set, SP_DEVICE_INTERFACE_DATA *iface)
static void find_devices(void)
{
static ULONGLONG last_check;
SP_DEVICE_INTERFACE_DATA iface = { sizeof(iface) };
struct device *device;
HIDD_ATTRIBUTES attr;
@ -176,10 +174,6 @@ static void find_devices(void)
HDEVINFO set;
DWORD idx;
if (GetTickCount64() - last_check < 2000)
return;
last_check = GetTickCount64();
HidD_GetHidGuid(&hid_guid);
EnterCriticalSection(&rawinput_devices_cs);