More misc cleanup

This commit is contained in:
Henrik Rydgård committed 2025-05-14 15:14:03 +02:00
1 parent 8ed898c5e6
commit 4e0b6ac3ec
7 files changed
+39 -22

No files matched your search

+4 -1
View File
@@ -289,7 +289,10 @@ void sleep_precise(double seconds) {
LARGE_INTEGER due;
due.QuadPart = -(sleepTicks > maxTicks ? maxTicks : sleepTicks);
// Note: SetWaitableTimerEx is not available on Vista.
SetWaitableTimer(Timer, &due, 0, NULL, NULL, FALSE);
if (!SetWaitableTimer(Timer, &due, 0, NULL, NULL, FALSE)) {
_dbg_assert_(false);
break;
}
WaitForSingleObject(Timer, INFINITE);
QueryPerformanceCounter(&qpc);
}