Commit 99f71e5a authored by Erwan Tulou's avatar Erwan Tulou

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.
parent 5a6d4231
...@@ -698,7 +698,7 @@ void vlc_testcancel (void) ...@@ -698,7 +698,7 @@ void vlc_testcancel (void)
for (vlc_cleanup_t *p = nfo->cleaners; p != NULL; p = p->next) for (vlc_cleanup_t *p = nfo->cleaners; p != NULL; p = p->next)
p->proc (p->data); p->proc (p->data);
#ifndef UNDER_CE #ifndef UNDER_CE
_endthread (); _endthreadex(0);
#else #else
ExitThread(0); ExitThread(0);
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment