#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:
wj32
2009-05-12 03:30:09 +00:00
parent 4f1ac833e7
commit 6af7ad9280
2 changed files with 5 additions and 2 deletions
@@ -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)
{