Alexandre Julliard : ntdll: Send the exit code to the server on failed initialization.
Module: wine Branch: master Commit: c70a17dbd94dd71567db94ef00e4daf4d1088b91 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c70a17dbd94dd71567db94ef00... Author: Alexandre Julliard <julliard(a)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 ); }
participants (1)
-
Alexandre Julliard