Dmitry Timoshkov : kernel32: Exit from initial thread with ExitThread not by ExitProcess.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Oct 24 13:55:05 CDT 2006


Module: wine
Branch: master
Commit: 5ace8745ce0439f23bb7843f421273feb9c5356f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5ace8745ce0439f23bb7843f421273feb9c5356f

Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date:   Tue Oct 24 23:49:44 2006 +0900

kernel32: Exit from initial thread with ExitThread not by ExitProcess.

---

 dlls/kernel32/process.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c
index eabe865..c28b6cc 100644
--- a/dlls/kernel32/process.c
+++ b/dlls/kernel32/process.c
@@ -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-cvs mailing list