Skip to content

Commit 801e2ee

Browse files
committed
Ignore priority class for elevated processes
1 parent aba9aad commit 801e2ee

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ProcessHacker/proctree.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2583,7 +2583,12 @@ BOOLEAN NTAPI PhpProcessTreeNewCallback(
25832583
}
25842584
break;
25852585
case PHPRTLC_PRIORITYCLASS:
2586-
PhInitializeStringRefLongHint(&getCellText->Text, PhGetProcessPriorityClassString(processItem->PriorityClass));
2586+
{
2587+
if (processItem->QueryHandle)
2588+
{
2589+
PhInitializeStringRefLongHint(&getCellText->Text, PhGetProcessPriorityClassString(processItem->PriorityClass));
2590+
}
2591+
}
25872592
break;
25882593
case PHPRTLC_BASEPRIORITY:
25892594
{

0 commit comments

Comments
 (0)