Commit c70a17db authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent 35c91324
......@@ -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 );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment