thread: fix win32 thrd_create return values
@@ -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;
