diff options
| -rw-r--r-- | include/compat/pthread.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/compat/pthread.h b/include/compat/pthread.h index ed1b9dc..8211dda 100644 --- a/include/compat/pthread.h +++ b/include/compat/pthread.h | |||
| @@ -48,7 +48,7 @@ pthread_once(pthread_once_t *once, void (*cb) (void)) | |||
| 48 | struct _pthread_win32_cb_arg arg = { .cb = cb }; | 48 | struct _pthread_win32_cb_arg arg = { .cb = cb }; |
| 49 | BOOL rc = InitOnceExecuteOnce(&once->once, _pthread_once_win32_cb, &arg, NULL); | 49 | BOOL rc = InitOnceExecuteOnce(&once->once, _pthread_once_win32_cb, &arg, NULL); |
| 50 | if (rc == 0) | 50 | if (rc == 0) |
| 51 | return -1; | 51 | return EINVAL; |
| 52 | else | 52 | else |
| 53 | return 0; | 53 | return 0; |
| 54 | } | 54 | } |
