kernel32: Exit from initial thread with ExitThread not by
ExitProcess
Dmitry Timoshkov
dmitry at codeweavers.com
Tue Oct 24 09:49:44 CDT 2006
Hello,
this patch is encouraged by a question and an answer in microsoft.public.win32.programmer.kernel,
and is really in trend of Windows programming where an initial thread in a process
has no any preference over any other thread. I.e. an app which creates a thread
and exits from its main() still works until its last thread has finished.
Changelog:
kernel32: Exit from initial thread with ExitThread not by ExitProcess.
--- cvs/hq/wine/dlls/kernel32/process.c Fri Oct 13 15:33:52 2006
+++ wine/dlls/kernel32/process.c Tue Oct 24 14:41:46 2006
@@ -819,7 +819,7 @@ static void start_process( void *arg )
SetLastError( 0 ); /* clear error code */
if (peb->BeingDebugged) DbgBreakPoint();
- ExitProcess( entry( peb ) );
+ ExitThread( entry( peb ) );
}
__EXCEPT(UnhandledExceptionFilter)
{
More information about the wine-patches
mailing list