aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-01-02 21:37:19 +0900
committerJunio C Hamano <gitster@pobox.com>2023-01-02 21:37:19 +0900
commit039e5a0b701c76dce38c397853cea490d5a27373 (patch)
tree99445163f27ed7393fb7811ef1948d4760dd4a36
parentMerge branch 'ew/format-patch-mboxrd' (diff)
parentwin32: use _endthreadex to terminate threads, not ExitThread (diff)
downloadgit-039e5a0b701c76dce38c397853cea490d5a27373.tar.gz
git-039e5a0b701c76dce38c397853cea490d5a27373.zip
Merge branch 'sk/win32-pthread-exit-fix'
An API emulation fix. * sk/win32-pthread-exit-fix: win32: use _endthreadex to terminate threads, not ExitThread
-rw-r--r--compat/win32/pthread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/win32/pthread.h b/compat/win32/pthread.h
index 737983d00b..cc3221cb2c 100644
--- a/compat/win32/pthread.h
+++ b/compat/win32/pthread.h
@@ -66,7 +66,7 @@ pthread_t pthread_self(void);
static inline void NORETURN pthread_exit(void *ret)
{
- ExitThread((DWORD)(intptr_t)ret);
+ _endthreadex((unsigned)(uintptr_t)ret);
}
typedef DWORD pthread_key_t;