The code does the same but in a cleaner way, making room for the next patch. --- mingw-w64-libraries/winpthreads/src/sched.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/mingw-w64-libraries/winpthreads/src/sched.c b/mingw-w64-libraries/winpthreads/src/sched.c index 75a579db..bdd4301b 100644 --- a/mingw-w64-libraries/winpthreads/src/sched.c +++ b/mingw-w64-libraries/winpthreads/src/sched.c @@ -93,13 +93,13 @@ static int pthread_check(pthread_t t) if (!t) return ESRCH; pv = __pth_gpointer_locked (t); + if (pv->ended == 0) + return 0; if (!(pv->h) || pv->h == INVALID_HANDLE_VALUE) { - if (pv->ended == 0) - return 0; return ESRCH; } - else if ((!GetHandleInformation(pv->h, &dwFlags) && pv->ended)) + else if (!GetHandleInformation(pv->h, &dwFlags)) return 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