diff options
Diffstat (limited to 'ptw32_threadDestroy.c')
-rw-r--r-- | ptw32_threadDestroy.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ptw32_threadDestroy.c b/ptw32_threadDestroy.c index b4b9fac..b88e5d9 100644 --- a/ptw32_threadDestroy.c +++ b/ptw32_threadDestroy.c @@ -76,10 +76,8 @@ ptw32_threadDestroy (pthread_t thread) #if ! defined (__MINGW32__) || defined (__MSVCRT__) || defined (__DMC__) /* * See documentation for endthread vs endthreadex. - * Don't close the Win32 handle of implicit POSIX threads - * because the process may want to call GetExitCodeThread(). */ - if (threadCopy.threadH != 0 && !threadCopy.implicit) + if (threadCopy.threadH != 0) { CloseHandle (threadCopy.threadH); } |