index fix

This commit is contained in:
donnaskiez 2024-07-20 19:07:17 +10:00
parent 56fbbf5284
commit 7d5da826e9

View file

@ -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: