Gamepad (Windows): tidy

This commit is contained in:
Carter Li
2026-10-11 14:53:32 +08:00
parent 3453de61f8
commit 1e8b4eb974
+1 -1
View File
@@ -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;
}
}