Fix selecting processes by middle click if they are not sorted by name
@@ -4129,8 +4129,18 @@ BOOLEAN NTAPI PhpProcessTreeNewCallback(
if (last < item->Node.Index)
last = item->Node.Index;
}
+ else if (first != -1)
+ {
+ // select found range and reset indexes (TheEragon)
+ TreeNew_SelectRange(ProcessTreeListHandle, first, last);
+
+ first = -1;
+ last = 0;
+ }
}
+ // select last found range, if any (TheEragon)
+ if (first != -1)
TreeNew_SelectRange(ProcessTreeListHandle, first, last);
}
