ntdll: Fix leaking activation context when terminating via exit_thread(). (Valgrind)

Sebastian Lackner sebastian at fds-team.de
Sat Jun 21 20:54:25 CDT 2014

Fixes https://bugs.winehq.org/show_bug.cgi?id=36782

There are multiple ways to terminate a thread, either by calling
ExitThread, RtlExitUserThread or just by returning from the thread
callback function (this is what we use in the test). All methods should
release the thread activation context stack (currently only ExitThread
does). The easiest way to fix that is to move the call into the ntdll
exit_thread(...) function.

 dlls/kernel32/thread.c |    1 -
 dlls/ntdll/thread.c    |    1 +
 2 files changed, 1 insertion(+), 1 deletion(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ntdll-Fix-leaking-activation-context-when-terminatin.patch
Type: text/x-patch
Size: 1120 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20140622/c57f2671/attachment.bin>

More information about the wine-patches mailing list