mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-11 23:33:47 +00:00
Merge pull request #1622 from yorah/fix/thread-segfault
thread: fix segfault on Windows 64 bits
This commit is contained in:
commit
b2984e8aac
@ -24,8 +24,10 @@ int pthread_join(pthread_t thread, void **value_ptr)
|
||||
DWORD ret = WaitForSingleObject(thread, INFINITE);
|
||||
|
||||
if (ret == WAIT_OBJECT_0) {
|
||||
if (value_ptr != NULL)
|
||||
if (value_ptr != NULL) {
|
||||
*value_ptr = NULL;
|
||||
GetExitCodeThread(thread, (void *)value_ptr);
|
||||
}
|
||||
CloseHandle(thread);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user