"Felix Nawothnig" flexo@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.