mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
simplied KphProtectDeinit
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@1290 21ef857c-d57f-4fe0-8362-d861dc6d29cd
This commit is contained in:
Binary file not shown.
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user