Fix thread tab column index
@@ -114,7 +114,7 @@ VOID PhInitializeThreadList(
PhAddTreeNewColumn(TreeNewHandle, PH_THREAD_TREELIST_COLUMN_USERTIME, FALSE, L"User time", 100, PH_ALIGN_LEFT, ULONG_MAX, 0);
PhAddTreeNewColumn(TreeNewHandle, PH_THREAD_TREELIST_COLUMN_IDEALPROCESSOR, FALSE, L"Ideal processor", 80, PH_ALIGN_LEFT, ULONG_MAX, 0);
PhAddTreeNewColumn(TreeNewHandle, PH_THREAD_TREELIST_COLUMN_CRITICAL, FALSE, L"Critical", 80, PH_ALIGN_LEFT, ULONG_MAX, 0);
- PhAddTreeNewColumn(TreeNewHandle, PH_THREAD_TREELIST_COLUMN_TIDHEX, FALSE, L"TID (Hex)", 50, PH_ALIGN_RIGHT, 0, DT_RIGHT);
+ PhAddTreeNewColumn(TreeNewHandle, PH_THREAD_TREELIST_COLUMN_TIDHEX, FALSE, L"TID (Hex)", 50, PH_ALIGN_RIGHT, ULONG_MAX, DT_RIGHT);
TreeNew_SetRedraw(TreeNewHandle, TRUE);
TreeNew_SetTriState(TreeNewHandle, TRUE);
@@ -345,7 +345,7 @@ VOID PhpRemoveThreadNode(
// Remove from list and cleanup.
- if ((index = PhFindItemList(Context->NodeList, ThreadNode)) != -1)
+ if ((index = PhFindItemList(Context->NodeList, ThreadNode)) != ULONG_MAX)
PhRemoveItemList(Context->NodeList, index);
PhpDestroyThreadNode(ThreadNode);
