Commit 6e508761 authored by Ivan Leo Puoti's avatar Ivan Leo Puoti Committed by Alexandre Julliard

Get ExitProcess to call NtTerminateProcess.

parent 27eb7adb
......@@ -2076,15 +2076,8 @@ BOOL WINAPI TerminateProcess( HANDLE handle, DWORD exit_code )
void WINAPI ExitProcess( DWORD status )
{
LdrShutdownProcess();
SERVER_START_REQ( terminate_process )
{
/* send the exit code to the server */
req->handle = GetCurrentProcess();
req->exit_code = status;
wine_server_call( req );
}
SERVER_END_REQ;
exit( status );
NtTerminateProcess(GetCurrentProcess(), status);
exit(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