Get ExitProcess to call NtTerminateProcess.

This commit is contained in:
Ivan Leo Puoti 2005-09-06 09:25:19 +00:00 committed by Alexandre Julliard
parent 27eb7adb92
commit 6e508761bf
1 changed files with 2 additions and 9 deletions

View File

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