mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Fixed remainingcalls to ObGetReferenceCount() and ObGetHandleCount().
svn path=/trunk/; revision=2673
This commit is contained in:
parent
8532827baf
commit
3783d01bf9
1 changed files with 6 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: kill.c,v 1.50 2001/11/08 01:09:20 ekohl Exp $
|
||||
/* $Id: kill.c,v 1.51 2002/03/05 11:33:12 ekohl Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -101,7 +101,7 @@ PsReapThreads(VOID)
|
|||
|
||||
DPRINT("PsProcessType %x\n", PsProcessType);
|
||||
DPRINT("Reaping thread %x\n", current);
|
||||
DPRINT("Ref count %d\n", ObGetReferenceCount(Process));
|
||||
DPRINT("Pointer count %d\n", ObGetObjectPointerCount(Process));
|
||||
current->Tcb.State = THREAD_STATE_TERMINATED_2;
|
||||
RemoveEntryList(¤t->Tcb.ProcessThreadListEntry);
|
||||
if (IsListEmpty(&Process->ThreadListHead))
|
||||
|
@ -111,7 +111,7 @@ PsReapThreads(VOID)
|
|||
PiTerminateProcess(Process, Status);
|
||||
KeAcquireSpinLock( &PiThreadListLock, &oldIrql );
|
||||
}
|
||||
DPRINT("Ref count %d\n", ObGetReferenceCount(Process));
|
||||
DPRINT("Pointer count %d\n", ObGetObjectPointerCount(Process));
|
||||
KeReleaseSpinLock(&PiThreadListLock, oldIrql);
|
||||
ObDereferenceObject(current);
|
||||
KeAcquireSpinLock(&PiThreadListLock, &oldIrql);
|
||||
|
@ -224,9 +224,9 @@ NTSTATUS STDCALL
|
|||
PiTerminateProcess(PEPROCESS Process,
|
||||
NTSTATUS ExitStatus)
|
||||
{
|
||||
DPRINT("PiTerminateProcess(Process %x, ExitStatus %x) RC %d HC %d\n",
|
||||
Process, ExitStatus, ObGetReferenceCount(Process),
|
||||
ObGetHandleCount(Process));
|
||||
DPRINT("PiTerminateProcess(Process %x, ExitStatus %x) PC %d HC %d\n",
|
||||
Process, ExitStatus, ObGetObjectPointerCount(Process),
|
||||
ObGetObjectHandleCount(Process));
|
||||
|
||||
if (InterlockedExchange((PLONG)&Process->Pcb.State,
|
||||
PROCESS_STATE_TERMINATED) ==
|
||||
|
|
Loading…
Reference in a new issue