Skip to content

Commit

Permalink
fix handle id init
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Oct 20, 2024
1 parent 98c6ae9 commit 87ca35e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/thread/win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ int thrd_create(thrd_t *thr, thrd_start_t func, void *arg)
goto out;
}

*thr.hdl = (HANDLE)handle;
*thr.id = GetThreadId(handle);
thr->hdl = (HANDLE)handle;
thr->id = GetThreadId(handle);
out:
if (err)
mem_deref(th);
Expand Down

0 comments on commit 87ca35e

Please sign in to comment.