From 7d5da826e96ab5cd2a6b84dc1478f1ee2240329b Mon Sep 17 00:00:00 2001 From: donnaskiez Date: Sat, 20 Jul 2024 19:07:17 +1000 Subject: [PATCH] index fix --- driver/callbacks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/driver/callbacks.c b/driver/callbacks.c index 3038d95..a54084b 100644 --- a/driver/callbacks.c +++ b/driver/callbacks.c @@ -661,7 +661,7 @@ ProcessCreateNotifyRoutine(_In_ HANDLE ParentId, return; if (Create) { - entry = RtlHashmapEntryInsert(map, ProcessId); + entry = RtlHashmapEntryInsert(map, index); if (!entry) goto end; @@ -697,7 +697,7 @@ ProcessCreateNotifyRoutine(_In_ HANDLE ParentId, ImpObDereferenceObject(entry->process); FreeProcessEntryModuleList(entry, NULL); - RtlHashmapEntryDelete(map, ProcessId, &ProcessId); + RtlHashmapEntryDelete(map, index, &ProcessId); } end: