kernel32: Remove server-call from ExitThread()

Dmitry Timoshkov dmitry at codeweavers.com
Wed Feb 28 22:53:36 CST 2007


"Felix Nawothnig" <flexo at holycrap.org> wrote:

> -    if (last)
> -    {
> -        LdrShutdownProcess();
> -        exit( code );
> -    }
> -    else RtlExitUserThread( code );
> +    TerminateThread( GetCurrentThread(), code );
> +    exit(code); /* To avoid a compiler warning, never reached. */
> }

New code now calls exit() unconditionally killing the whole process.
If you follow the TerminateThread way you will notice that exit()
is being already called on its time.

-- 
Dmitry.



More information about the wine-devel mailing list