diff options
author | David Robillard <d@drobilla.net> | 2019-10-18 20:07:17 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-10-18 20:15:53 +0200 |
commit | 7f9f0d2b6e7ac33e5b2cc5060481a2cc1d429a7d (patch) | |
tree | 26b0b7b4684e82219d87c9dfff51dacd6f23422a /zix | |
parent | 2905be001d7492c8ca5b440c4c737d4aa50d899d (diff) | |
download | zix-7f9f0d2b6e7ac33e5b2cc5060481a2cc1d429a7d.tar.gz zix-7f9f0d2b6e7ac33e5b2cc5060481a2cc1d429a7d.tar.bz2 zix-7f9f0d2b6e7ac33e5b2cc5060481a2cc1d429a7d.zip |
Fix zix_sem_init return value on Windows
Diffstat (limited to 'zix')
-rw-r--r-- | zix/sem.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -150,7 +150,7 @@ static inline ZixStatus zix_sem_init(ZixSem* sem, unsigned initial) { sem->sem = CreateSemaphore(NULL, initial, LONG_MAX, NULL); - return (sem->sem) ? ZIX_STATUS_ERROR : ZIX_STATUS_SUCCESS; + return (sem->sem) ? ZIX_STATUS_SUCCESS : ZIX_STATUS_ERROR; } static inline void |