mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
#2790404 - "System.InvalidOperationException"
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@1266 21ef857c-d57f-4fe0-8362-d861dc6d29cd
This commit is contained in:
@@ -59,8 +59,10 @@ namespace ProcessHacker
|
||||
// Add the process to the list of all processes.
|
||||
_processes.Add(item.Pid, itemNode);
|
||||
|
||||
// Find this process' children and add them.
|
||||
foreach (ProcessNode node in _roots)
|
||||
// Find this process' children and add them.
|
||||
ProcessNode[] roots = _roots.ToArray();
|
||||
|
||||
foreach (ProcessNode node in roots)
|
||||
{
|
||||
if (node.ProcessItem.HasParent && node.PPid == item.Pid)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user