diff options
Diffstat (limited to 'src/zix')
-rw-r--r-- | src/zix/sem.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zix/sem.h b/src/zix/sem.h index 6a6dc8e..62f49f0 100644 --- a/src/zix/sem.h +++ b/src/zix/sem.h @@ -168,7 +168,7 @@ zix_sem_wait(ZixSem* sem) static inline bool zix_sem_try_wait(ZixSem* sem) { - WaitForSingleObject(sem->sem, 0); + return WaitForSingleObject(sem->sem, 0) == WAIT_OBJECT_0; } #else /* !defined(__APPLE__) && !defined(_WIN32) */ |