mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-05-18 06:05:41 -04:00
Common/Timer: Add missing return when timer wait succeeds
This commit is contained in:
parent
ca9dee85a2
commit
62718b3c50
@ -105,7 +105,10 @@ void Timer::SleepUntil(Value value, bool exact)
|
||||
fti.QuadPart += diff;
|
||||
|
||||
if (SetWaitableTimer(timer, &fti, 0, nullptr, nullptr, FALSE))
|
||||
{
|
||||
WaitForSingleObject(timer, INFINITE);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// falling back to sleep... bad.
|
||||
|
Loading…
x
Reference in New Issue
Block a user