Skip to content
Permalink
Browse files

windows: Use WaitForSingleObjectEx() always

This is available since Windows XP, so it's safe to use always, not just in
a WinRT ifdef.
  • Loading branch information
icculus committed Dec 31, 2017
1 parent 77bb49b commit 140cc46004cf9093a7426c98c84204db3172e995
Showing with 0 additions and 4 deletions.
  1. +0 −4 src/thread/windows/SDL_syssem.c
@@ -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;

0 comments on commit 140cc46

Please sign in to comment.