3
3
* Process properties: Environment page
4
4
*
5
5
* Copyright (C) 2009-2016 wj32
6
- * Copyright (C) 2018-2020 dmex
6
+ * Copyright (C) 2018-2021 dmex
7
7
*
8
8
* This file is part of Process Hacker.
9
9
*
@@ -176,7 +176,6 @@ VOID PhpSetEnvironmentListStatusMessage(
176
176
}
177
177
178
178
VOID PhpRefreshEnvironmentList (
179
- _In_ HWND hwndDlg ,
180
179
_Inout_ PPH_ENVIRONMENT_CONTEXT Context ,
181
180
_In_ PPH_PROCESS_ITEM ProcessItem
182
181
)
@@ -617,7 +616,7 @@ VOID PhpShowEnvironmentNodeContextMenu(
617
616
& refresh
618
617
) == IDOK && refresh )
619
618
{
620
- PhpRefreshEnvironmentList (Context -> WindowHandle , Context , Context -> ProcessItem );
619
+ PhpRefreshEnvironmentList (Context , Context -> ProcessItem );
621
620
}
622
621
}
623
622
break ;
@@ -656,7 +655,7 @@ VOID PhpShowEnvironmentNodeContextMenu(
656
655
);
657
656
NtClose (processHandle );
658
657
659
- PhpRefreshEnvironmentList (Context -> WindowHandle , Context , Context -> ProcessItem );
658
+ PhpRefreshEnvironmentList (Context , Context -> ProcessItem );
660
659
661
660
if (status == STATUS_TIMEOUT )
662
661
{
@@ -1361,7 +1360,7 @@ INT_PTR CALLBACK PhpProcessEnvironmentDlgProc(
1361
1360
TreeNew_SetEmptyText (context -> TreeNewHandle , & context -> StatusMessage -> sr , 0 );
1362
1361
PhLoadSettingsEnvironmentList (context );
1363
1362
1364
- PhpRefreshEnvironmentList (hwndDlg , context , processItem );
1363
+ PhpRefreshEnvironmentList (context , processItem );
1365
1364
1366
1365
PhInitializeWindowTheme (hwndDlg , PhEnableThemeSupport );
1367
1366
}
@@ -1496,7 +1495,7 @@ INT_PTR CALLBACK PhpProcessEnvironmentDlgProc(
1496
1495
1497
1496
if (PhpShowEditEnvDialog (hwndDlg , processItem , L"" , NULL , & refresh ) == IDOK && refresh )
1498
1497
{
1499
- PhpRefreshEnvironmentList (hwndDlg , context , processItem );
1498
+ PhpRefreshEnvironmentList (context , processItem );
1500
1499
}
1501
1500
}
1502
1501
else
@@ -1512,7 +1511,7 @@ INT_PTR CALLBACK PhpProcessEnvironmentDlgProc(
1512
1511
break ;
1513
1512
case IDC_REFRESH :
1514
1513
{
1515
- PhpRefreshEnvironmentList (hwndDlg , context , processItem );
1514
+ PhpRefreshEnvironmentList (context , processItem );
1516
1515
}
1517
1516
break ;
1518
1517
case WM_PH_SET_LIST_VIEW_SETTINGS : // HACK
@@ -1531,7 +1530,7 @@ INT_PTR CALLBACK PhpProcessEnvironmentDlgProc(
1531
1530
& refresh
1532
1531
) == IDOK && refresh )
1533
1532
{
1534
- PhpRefreshEnvironmentList (hwndDlg , context , context -> ProcessItem );
1533
+ PhpRefreshEnvironmentList (context , context -> ProcessItem );
1535
1534
}
1536
1535
}
1537
1536
break ;
@@ -1545,7 +1544,7 @@ INT_PTR CALLBACK PhpProcessEnvironmentDlgProc(
1545
1544
switch (header -> code )
1546
1545
{
1547
1546
case PSN_QUERYINITIALFOCUS :
1548
- SetWindowLongPtr (hwndDlg , DWLP_MSGRESULT , (LPARAM )GetDlgItem ( hwndDlg , IDC_REFRESH ) );
1547
+ SetWindowLongPtr (hwndDlg , DWLP_MSGRESULT , (LPARAM )context -> TreeNewHandle );
1549
1548
return TRUE;
1550
1549
}
1551
1550
}
0 commit comments