Driver: PsTree: Fix procs_map handling

This commit is contained in:
Nodir Temirkhodjaev 2022-02-07 00:31:17 +03:00
parent eeed5eca90
commit fef1af8861

View File

@ -163,12 +163,12 @@ static PFORT_PSNODE fort_pstree_proc_new(
tommy_arrayof_grow(procs, index + 1);
proc_node = tommy_arrayof_ref(procs, index);
++ps_tree->procs_n;
}
tommy_hashdyn_insert(procs_map, proc_node, ps_name, pid_hash);
++ps_tree->procs_n;
return (PFORT_PSNODE) proc_node;
}
@ -219,8 +219,6 @@ static void fort_pstree_handle_new_proc(PFORT_PSTREE ps_tree, PCUNICODE_STRING p
return;
}
proc->pid_hash = pid_hash;
proc->process_id = processId;
proc->parent_process_id = parentProcessId;