mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
Set the process exit status.
svn path=/trunk/; revision=17322
This commit is contained in:
parent
ed43d4bddd
commit
65c59875e1
1 changed files with 2 additions and 0 deletions
|
@ -261,6 +261,7 @@ PspExitThread(NTSTATUS ExitStatus)
|
|||
happens when the last thread just terminates without explicitly
|
||||
terminating the process. */
|
||||
CurrentProcess->ExitTime = CurrentThread->ExitTime;
|
||||
CurrentProcess->ExitStatus = ExitStatus;
|
||||
}
|
||||
|
||||
/* Check if the process has a debug port */
|
||||
|
@ -573,6 +574,7 @@ NtTerminateProcess(IN HANDLE ProcessHandle OPTIONAL,
|
|||
we kill ourselves to prevent threads outside of our process trying
|
||||
to kill us */
|
||||
KeQuerySystemTime(&Process->ExitTime);
|
||||
Process->ExitStatus = ExitStatus;
|
||||
|
||||
/* Only master thread remains... kill it off */
|
||||
if (CurrentThread->ThreadsProcess == Process) {
|
||||
|
|
Loading…
Reference in a new issue