Skip to content

Commit

Permalink
windows: Use WaitForSingleObjectEx() always
Browse files Browse the repository at this point in the history
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 140cc46
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/thread/windows/SDL_syssem.c
Expand Up @@ -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;
Expand Down

0 comments on commit 140cc46

Please sign in to comment.