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

This commit is contained in:
Alexandre Julliard 2007-11-19 14:26:05 +01:00
parent 35c91324ea
commit c70a17dbd9
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
}