Commit 81c01f6f authored by Erwan Tulou's avatar Erwan Tulou Committed by Rémi Denis-Courmont

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.
(cherry picked from commit 99f71e5a62fdd14b031fdc89f452d873e3509c74)
Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 21260bbb
...@@ -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