https://git.reactos.org/?p=reactos.git;a=commitdiff;h=46c84779b6b07f1b9a172c6b357eba458770d1a2

commit 46c84779b6b07f1b9a172c6b357eba458770d1a2
Author:     Katayama Hirofumi MZ <[email protected]>
AuthorDate: Mon Jun 7 18:03:49 2021 +0900
Commit:     Katayama Hirofumi MZ <[email protected]>
CommitDate: Mon Jun 7 18:03:49 2021 +0900

    [CPL][APPWIZ] Follow-up of #3726
    
    Sorry, #3726 doesn't fix CORE-5737. CORE-17550
---
 dll/cpl/appwiz/addons.c | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/dll/cpl/appwiz/addons.c b/dll/cpl/appwiz/addons.c
index b9c089f744f..ae51aa4849a 100644
--- a/dll/cpl/appwiz/addons.c
+++ b/dll/cpl/appwiz/addons.c
@@ -388,17 +388,10 @@ static DWORD WINAPI download_proc(PVOID arg)
 
 static INT_PTR CALLBACK installer_proc(HWND hwnd, UINT msg, WPARAM wParam, 
LPARAM lParam)
 {
-    HWND hwndProgress, hwndInstallButton;
+    HWND hwndInstallButton;
     switch(msg) {
     case WM_INITDIALOG:
-
-        hwndProgress = GetDlgItem(hwnd, ID_DWL_PROGRESS);
-        if (hwndProgress == GetFocus()) /* Avoid CORE-5737 */
-        {
-            SendMessageW(hwnd, WM_NEXTDLGCTL, 0, FALSE);
-        }
-        ShowWindow(hwndProgress, SW_HIDE);
-
+        ShowWindow(GetDlgItem(hwnd, ID_DWL_PROGRESS), SW_HIDE);
         install_dialog = hwnd;
         return TRUE;
 

Reply via email to