From c70a17dbd94dd71567db94ef00e4daf4d1088b91 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 19 Nov 2007 14:26:05 +0100 Subject: [PATCH] ntdll: Send the exit code to the server on failed initialization. --- dlls/ntdll/loader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c index c6c68068ab0..4d6b854d7e6 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 ); }