comparison 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
comparison
equal deleted inserted replaced
1250:a4d515d0fc3a 1251:86d0d01290ea
199 synchronization handle. */ 199 synchronization handle. */
200 200
201 BOOL ok = TRUE; 201 BOOL ok = TRUE;
202 202
203 if (hSynch == NULL) return NULL; 203 if (hSynch == NULL) return NULL;
204 if (Flags & 4 == 1 && hSynch->hEvent == NULL) ok = FALSE; 204 if ((Flags & 4) == 1 && (hSynch->hEvent == NULL)) ok = FALSE;
205 if (Flags & 2 == 1 && hSynch->hMutex == NULL) ok = FALSE; 205 if ((Flags & 2) == 1 && (hSynch->hMutex == NULL)) ok = FALSE;
206 if (Flags & 1 == 1 && hSynch->hEvent == NULL) ok = FALSE; 206 if ((Flags & 1) == 1 && (hSynch->hEvent == NULL)) ok = FALSE;
207 if (!ok) 207 if (!ok)
208 { 208 {
209 CloseSynchHandle (hSynch); 209 CloseSynchHandle (hSynch);
210 return NULL; 210 return NULL;
211 } 211 }