diff --git a/src/detection/gamepad/gamepad_windows.c b/src/detection/gamepad/gamepad_windows.c index 945c30e9e..7e3d22b27 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); - GetOverlappedResultEx(hHidFile, &overlapped, &read, INFINITE, TRUE); + GetOverlappedResultEx(hHidFile, &overlapped, &read, INFINITE, FALSE); return false; } }