mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-10 19:05:46 -04:00
Common/Timer: Add missing return when timer wait succeeds
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user