--- mingw-w64-libraries/winpthreads/src/sched.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/mingw-w64-libraries/winpthreads/src/sched.c b/mingw-w64-libraries/winpthreads/src/sched.c index bdd4301b..df3c60ea 100644 --- a/mingw-w64-libraries/winpthreads/src/sched.c +++ b/mingw-w64-libraries/winpthreads/src/sched.c @@ -95,12 +95,7 @@ static int pthread_check(pthread_t t) pv = __pth_gpointer_locked (t); if (pv->ended == 0) return 0; - if (!(pv->h) || pv->h == INVALID_HANDLE_VALUE) - { - return ESRCH; - } - else if (!GetHandleInformation(pv->h, &dwFlags)) - return ESRCH; + CHECK_OBJECT(pv, ESRCH); return 0; } -- 2.17.1 _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public