Rémi Bernon : xinput1_3: Continue enumeration until there's no more slot.

Alexandre Julliard julliard at winehq.org
Thu Aug 5 16:13:40 CDT 2021


Module: wine
Branch: master
Commit: 1371bcf3ad8d6107dab30d49e40bf6ea1765e97f
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=1371bcf3ad8d6107dab30d49e40bf6ea1765e97f

Author: Rémi Bernon <rbernon at codeweavers.com>
Date:   Thu Aug  5 17:12:08 2021 +0200

xinput1_3: Continue enumeration until there's no more slot.

Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/xinput1_3/hid.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/xinput1_3/hid.c b/dlls/xinput1_3/hid.c
index ac95ad3c402..382469a0be9 100644
--- a/dlls/xinput1_3/hid.c
+++ b/dlls/xinput1_3/hid.c
@@ -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);
 }




More information about the wine-cvs mailing list