Module: wine Branch: master Commit: 8343099ff51a5e398f75789fbec70bc566bac9ac URL: https://source.winehq.org/git/wine.git/?a=commit;h=8343099ff51a5e398f75789fb...
Author: Zebediah Figura zfigura@codeweavers.com Date: Thu Aug 16 18:37:41 2018 -0500
xinput: Use DIGCF_PRESENT.
Signed-off-by: Zebediah Figura zfigura@codeweavers.com Signed-off-by: Aric Stewart aric@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/xinput1_3/hid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/xinput1_3/hid.c b/dlls/xinput1_3/hid.c index 3c54890..8a35443 100644 --- a/dlls/xinput1_3/hid.c +++ b/dlls/xinput1_3/hid.c @@ -241,7 +241,7 @@ void HID_find_gamepads(xinput_controller *devices)
EnterCriticalSection(&hid_xinput_crit);
- device_info_set = SetupDiGetClassDevsW(&hid_guid, NULL, NULL, DIGCF_DEVICEINTERFACE); + device_info_set = SetupDiGetClassDevsW(&hid_guid, NULL, NULL, DIGCF_DEVICEINTERFACE | DIGCF_PRESENT);
data = HeapAlloc(GetProcessHeap(), 0 , sizeof(*data) + detail_size); data->cbSize = sizeof(*data);