Mercurial > sdl-ios-xcode
diff src/thread/win32/win_ce_semaphore.c @ 1251:86d0d01290ea
Updated Windows CE/PocketPC support...adds GAPI driver, landscape mode,
updated project files, VS2005 support, VGA mode, more device support, etc,
etc, etc.
Fixes Bugzilla #47 and #28.
--ryan.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Thu, 19 Jan 2006 08:43:00 +0000 |
parents | 13ee9f4834ea |
children | 450721ad5436 |
line wrap: on
line diff
--- a/src/thread/win32/win_ce_semaphore.c Thu Jan 19 08:36:41 2006 +0000 +++ b/src/thread/win32/win_ce_semaphore.c Thu Jan 19 08:43:00 2006 +0000 @@ -201,9 +201,9 @@ BOOL ok = TRUE; if (hSynch == NULL) return NULL; - if (Flags & 4 == 1 && hSynch->hEvent == NULL) ok = FALSE; - if (Flags & 2 == 1 && hSynch->hMutex == NULL) ok = FALSE; - if (Flags & 1 == 1 && hSynch->hEvent == NULL) ok = FALSE; + if ((Flags & 4) == 1 && (hSynch->hEvent == NULL)) ok = FALSE; + if ((Flags & 2) == 1 && (hSynch->hMutex == NULL)) ok = FALSE; + if ((Flags & 1) == 1 && (hSynch->hEvent == NULL)) ok = FALSE; if (!ok) { CloseSynchHandle (hSynch);