Fix thd_join on win64
This commit is contained in:
parent
1f6d77e1f6
commit
999e1b5cc7
@ -14,8 +14,11 @@ void
|
|||||||
thd_join(thd_t thd, void **ret)
|
thd_join(thd_t thd, void **ret)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (WaitForSingleObject(thd, INFINITE) == WAIT_OBJECT_0 && ret)
|
if (WaitForSingleObject(thd, INFINITE) == WAIT_OBJECT_0 && ret) {
|
||||||
GetExitCodeThread(thd, (LPDWORD) ret);
|
DWORD exit_code;
|
||||||
|
GetExitCodeThread(thd, (LPDWORD) &exit_code);
|
||||||
|
*ret = (void *)(uintptr_t)exit_code;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user