[PATCH 2/3] xinput: Look for lower or upper case IG_ in a DevicePath.
Arkadiusz Hiler
ahiler at codeweavers.com
Mon Feb 22 05:50:37 CST 2021
This prepares xinput for the upcoming change in setupapi path casing.
Signed-off-by: Arkadiusz Hiler <ahiler 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 8aea638a8d7..3a7d3f4ead6 100644
--- a/dlls/xinput1_3/hid.c
+++ b/dlls/xinput1_3/hid.c
@@ -247,7 +247,7 @@ void HID_find_gamepads(xinput_controller *devices)
&interface_data, data, sizeof(*data) + detail_size, NULL, NULL))
continue;
- if (!wcsstr(data->DevicePath, L"IG_"))
+ if (!wcsstr(data->DevicePath, L"IG_") && !wcsstr(data->DevicePath, L"ig_"))
continue;
open_device_idx = -1;
--
2.30.1
More information about the wine-devel
mailing list