[PATCH v2 5/7] xinput: Use DIGCF_PRESENT.

Zebediah Figura zfigura at codeweavers.com
Thu Aug 16 18:37:41 CDT 2018


Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
 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);
-- 
2.7.4




More information about the wine-devel mailing list