Alexandre Julliard : ntdll: Send the exit code to the server on failed initialization.

Alexandre Julliard julliard at winehq.org
Mon Nov 19 08:19:52 CST 2007


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Nov 19 14:26:05 2007 +0100

ntdll: Send the exit code to the server on failed initialization.

---

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

diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c
index c6c6806..4d6b854 100644
--- a/dlls/ntdll/loader.c
+++ b/dlls/ntdll/loader.c
@@ -2330,7 +2330,7 @@ void WINAPI LdrInitializeThunk( ULONG unknown1, ULONG unknown2, ULONG unknown3,
 error:
     ERR( "Main exe initialization for %s failed, status %x\n",
          debugstr_w(peb->ProcessParameters->ImagePathName.Buffer), status );
-    exit(1);
+    NtTerminateProcess( GetCurrentProcess(), status );
 }
 
 




More information about the wine-cvs mailing list