xinput1_3: Continue enumeration until there's no more slot.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
47ac0b0bdc
commit
1371bcf3ad
|
@ -285,13 +285,12 @@ void HID_find_gamepads(xinput_controller *devices)
|
|||
else if (!init_controller(&devices[i], ppd, &caps, device, detail->DevicePath))
|
||||
WARN("ignoring HID device, failed to initialize\n");
|
||||
else
|
||||
goto done;
|
||||
continue;
|
||||
|
||||
CloseHandle(device);
|
||||
HidD_FreePreparsedData(ppd);
|
||||
}
|
||||
|
||||
done:
|
||||
SetupDiDestroyDeviceInfoList(device_info_set);
|
||||
LeaveCriticalSection(&xinput_crit);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue