Added seting of exit status in NtTerminateProcess.

svn path=/trunk/; revision=2889
This commit is contained in:
Hartmut Birr 2002-04-27 19:25:16 +00:00
parent 4aead93e6e
commit 418853bd8f

View file

@ -1,4 +1,4 @@
/* $Id: kill.c,v 1.51 2002/03/05 11:33:12 ekohl Exp $
/* $Id: kill.c,v 1.52 2002/04/27 19:25:16 hbirr Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -264,7 +264,7 @@ NtTerminateProcess(IN HANDLE ProcessHandle,
{
return(Status);
}
Process->ExitStatus = ExitStatus;
PiTerminateProcessThreads(Process, ExitStatus);
if (PsGetCurrentThread()->ThreadsProcess == Process)
{