Skip to content

Commit 55ae1ad

Browse files
committed
Update prpghndl.c
1 parent 41371a6 commit 55ae1ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ProcessHacker/prpghndl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Process properties: Handles page
44
*
55
* Copyright (C) 2009-2016 wj32
6-
* Copyright (C) 2017-2019 dmex
6+
* Copyright (C) 2017-2021 dmex
77
*
88
* This file is part of Process Hacker.
99
*
@@ -762,7 +762,7 @@ INT_PTR CALLBACK PhpProcessHandlesDlgProc(
762762
PhSetEnabledProvider(&handlesContext->ProviderRegistration, FALSE);
763763
break;
764764
case PSN_QUERYINITIALFOCUS:
765-
SetWindowLongPtr(hwndDlg, DWLP_MSGRESULT, (LPARAM)GetDlgItem(hwndDlg, IDC_LIST));
765+
SetWindowLongPtr(hwndDlg, DWLP_MSGRESULT, (LPARAM)handlesContext->TreeNewHandle);
766766
return TRUE;
767767
}
768768
}

0 commit comments

Comments
 (0)