simplied KphProtectDeinit

git-svn-id: svn://svn.code.sf.net/p/processhacker/code@1290 21ef857c-d57f-4fe0-8362-d861dc6d29cd
This commit is contained in:
wj32
2009-05-17 10:21:50 +00:00
parent 7f2f872b96
commit 7108fd4750
2 changed files with 1 additions and 21 deletions
Binary file not shown.
+1 -21
View File
@@ -112,27 +112,7 @@ NTSTATUS KphProtectDeinit()
waitLi.QuadPart = KPH_REL_TIMEOUT_IN_SEC(1);
KeDelayExecutionThread(KernelMode, FALSE, &waitLi);
KeAcquireSpinLock(&ProtectedProcessListLock, &oldIrql);
/* Free and remove all process entries from the list. */
while (!IsListEmpty(&ProtectedProcessListHead))
{
PKPH_PROCESS_ENTRY entry =
CONTAINING_RECORD(
RemoveHeadList(&ProtectedProcessListHead),
KPH_PROCESS_ENTRY,
ListEntry
);
dprintf("KphProtectDeinit: removing entry 0x%08x\n", entry);
ExFreeToNPagedLookasideList(
&ProtectedProcessLookasideList,
entry
);
}
KeReleaseSpinLock(&ProtectedProcessListLock, oldIrql);
/* Free all process protection entries. */
ExDeleteNPagedLookasideList(&ProtectedProcessLookasideList);
return STATUS_SUCCESS;