[PATCH v2 2/3] xinput: Look for IG_ in a DevicePath ignoring the case.
Arkadiusz Hiler
ahiler at codeweavers.com
Thu Feb 25 11:40:03 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 | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/xinput1_3/hid.c b/dlls/xinput1_3/hid.c
index 8aea638a8d7..c3b3a4831a7 100644
--- a/dlls/xinput1_3/hid.c
+++ b/dlls/xinput1_3/hid.c
@@ -247,7 +247,8 @@ void HID_find_gamepads(xinput_controller *devices)
&interface_data, data, sizeof(*data) + detail_size, NULL, NULL))
continue;
- if (!wcsstr(data->DevicePath, L"IG_"))
+ wcslwr(data->DevicePath);
+ if (!wcsstr(data->DevicePath, L"ig_"))
continue;
open_device_idx = -1;
--
2.30.1
More information about the wine-devel
mailing list