From: Arkadiusz Hiler Subject: [PATCH 2/3] xinput: Look for lower or upper case IG_ in a DevicePath. Message-Id: <20210222115038.359258-2-ahiler@codeweavers.com> Date: Mon, 22 Feb 2021 13:50:37 +0200 In-Reply-To: <20210222115038.359258-1-ahiler@codeweavers.com> References: <20210222115038.359258-1-ahiler@codeweavers.com> This prepares xinput for the upcoming change in setupapi path casing. Signed-off-by: Arkadiusz Hiler --- 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