src/thread/win32/SDL_syssem.c
changeset 3071 6f3308d4b6cd
parent 3069 caefe2344f65
child 3697 f7b03b6838cb
equal deleted inserted replaced
3070:3e3724fb829e 3071:6f3308d4b6cd
   162 #if defined(_WIN32_WCE) && (_WIN32_WCE < 300)
   162 #if defined(_WIN32_WCE) && (_WIN32_WCE < 300)
   163     if (ReleaseSemaphoreCE(sem->id, 1, NULL) == FALSE) {
   163     if (ReleaseSemaphoreCE(sem->id, 1, NULL) == FALSE) {
   164 #else
   164 #else
   165     if (ReleaseSemaphore(sem->id, 1, NULL) == FALSE) {
   165     if (ReleaseSemaphore(sem->id, 1, NULL) == FALSE) {
   166 #endif
   166 #endif
   167         InterlockedDecrement(&sem->count);           /* restore */
   167         InterlockedDecrement(&sem->count);      /* restore */
   168         SDL_SetError("ReleaseSemaphore() failed");
   168         SDL_SetError("ReleaseSemaphore() failed");
   169         return -1;
   169         return -1;
   170     }
   170     }
   171     return 0;
   171     return 0;
   172 }
   172 }