mirror of
https://github.com/reactos/reactos.git
synced 2024-07-08 05:35:06 +00:00
NtTerminateProcess did not terminate the current thread if it was a member of the process being terminated
svn path=/trunk/; revision=1140
This commit is contained in:
parent
537f82fd1a
commit
32ea00da50
|
@ -187,6 +187,8 @@ NTSTATUS STDCALL PiTerminateProcess(PEPROCESS Process,
|
|||
Process->Pcb.DispatcherHeader.SignalState = TRUE;
|
||||
KeDispatcherObjectWake(&Process->Pcb.DispatcherHeader);
|
||||
KeReleaseDispatcherDatabaseLock(FALSE);
|
||||
if( PsGetCurrentThread()->ThreadsProcess == Process )
|
||||
PsTerminateCurrentThread( ExitStatus );
|
||||
DPRINT("RC %d\n", ObGetReferenceCount(Process));
|
||||
return(STATUS_SUCCESS);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue