windows: Use WaitForSingleObjectEx() always

This is available since Windows XP, so it's safe to use always, not just in
a WinRT ifdef.
Ryan C. Gordon 2017-12-31 03:35:41 -05:00
parent 77bb49b7a7
commit 140cc46004
1 changed files with 0 additions and 4 deletions

View File

@ -90,11 +90,7 @@ SDL_SemWaitTimeout(SDL_sem * sem, Uint32 timeout)
} else {
dwMilliseconds = (DWORD) timeout;
}
#if __WINRT__
switch (WaitForSingleObjectEx(sem->id, dwMilliseconds, FALSE)) {
#else
switch (WaitForSingleObject(sem->id, dwMilliseconds)) {
#endif
case WAIT_OBJECT_0:
InterlockedDecrement(&sem->count);
retval = 0;