diff --git a/src/thread/win32.c b/src/thread/win32.c index 0d933ba83..1cd16d402 100644 --- a/src/thread/win32.c +++ b/src/thread/win32.c @@ -85,11 +85,11 @@ int thrd_create(thrd_t *thr, thrd_start_t func, void *arg) uintptr_t handle; if (!thr || !func) - return EINVAL; + return thrd_error; th = mem_alloc(sizeof(struct thread), NULL); if (!th) - return ENOMEM; + return thrd_nomem; th->func = func; th->arg = arg;