Commit f6e7f000 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

xinput1_3: Use wide-char string literals.

parent 144d898f
......@@ -243,12 +243,11 @@ void HID_find_gamepads(xinput_controller *devices)
while (SetupDiEnumDeviceInterfaces(device_info_set, NULL, &hid_guid, idx++,
&interface_data))
{
static const WCHAR ig[] = {'I','G','_',0};
if (!SetupDiGetDeviceInterfaceDetailW(device_info_set,
&interface_data, data, sizeof(*data) + detail_size, NULL, NULL))
continue;
if (!wcsstr(data->DevicePath, ig))
if (!wcsstr(data->DevicePath, L"IG_"))
continue;
open_device_idx = -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment