From 1e8b4eb9741bbf16023d52b393c1bb6e47497ba7 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Sun, 11 Oct 2026 14:53:32 +0800 Subject: [PATCH] Gamepad (Windows): tidy --- src/detection/gamepad/gamepad_windows.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detection/gamepad/gamepad_windows.c b/src/detection/gamepad/gamepad_windows.c index e54c5eb67..945c30e9e 100644 --- a/src/detection/gamepad/gamepad_windows.c +++ b/src/detection/gamepad/gamepad_windows.c @@ -113,7 +113,7 @@ static bool readHidReport(HANDLE hHidFile, uint8_t* buffer, uint32_t length, DWO // than by handle (CancelIo would take every other read on the same handle with it), and the // cancellation is waited for before returning. CancelIoEx(hHidFile, &overlapped); - GetOverlappedResult(hHidFile, &overlapped, &read, TRUE); + GetOverlappedResultEx(hHidFile, &overlapped, &read, INFINITE, TRUE); return false; } }