From 99f71e5a62fdd14b031fdc89f452d873e3509c74 Mon Sep 17 00:00:00 2001 From: Erwan Tulou Date: Wed, 10 Feb 2010 13:15:00 +0100 Subject: [PATCH] Win32(core): _endthreadex(0) instead of _endthread() According to msdn doc, _endthreadex(0) is to be used when thread is launched with _beginthreadex(). Note that when returning from the normal path, an implicit _endthreadex is issued anyway. It is important to be consistent whatever the path, since those final functions (_endthread, ExitThread, _endthreadex) don't have the same deallocation policy. --- src/win32/thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win32/thread.c b/src/win32/thread.c index dfeed9a228..b2e939d0f3 100644 --- a/src/win32/thread.c +++ b/src/win32/thread.c @@ -698,7 +698,7 @@ void vlc_testcancel (void) for (vlc_cleanup_t *p = nfo->cleaners; p != NULL; p = p->next) p->proc (p->data); #ifndef UNDER_CE - _endthread (); + _endthreadex(0); #else ExitThread(0); #endif -- 2.39.2