File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 3
3
* thread list
4
4
*
5
5
* Copyright (C) 2011-2012 wj32
6
- * Copyright (C) 2018-2021 dmex
6
+ * Copyright (C) 2018-2022 dmex
7
7
*
8
8
* This file is part of Process Hacker.
9
9
*
@@ -602,7 +602,8 @@ END_SORT_FUNCTION
602
602
603
603
BEGIN_SORT_FUNCTION (IdealProcessor )
604
604
{
605
- sortResult = PhCompareStringZ (node1 -> IdealProcessorText , node2 -> IdealProcessorText , TRUE);
605
+ sortResult = uint64cmp (node1 -> IdealProcessorMask , node2 -> IdealProcessorMask );
606
+ //sortResult = PhCompareStringZ(node1->IdealProcessorText, node2->IdealProcessorText, TRUE);
606
607
}
607
608
END_SORT_FUNCTION
608
609
@@ -1049,6 +1050,8 @@ BOOLEAN NTAPI PhpThreadTreeNewCallback(
1049
1050
{
1050
1051
if (NT_SUCCESS (PhGetThreadIdealProcessor (threadItem -> ThreadHandle , & idealProcessorNumber )))
1051
1052
{
1053
+ node -> IdealProcessorMask = MAKELONG (idealProcessorNumber .Group , idealProcessorNumber .Number );
1054
+
1052
1055
PhInitFormatU (& format [0 ], idealProcessorNumber .Group );
1053
1056
PhInitFormatC (& format [1 ], L':' );
1054
1057
PhInitFormatU (& format [2 ], idealProcessorNumber .Number );
You can’t perform that action at this time.
0 commit comments