[CPL] Do not enable the "Apply" button unconditionally (#1876)
authorBișoc George <fraizeraust99@gmail.com>
Sun, 1 Sep 2019 20:58:43 +0000 (22:58 +0200)
committerHermès BÉLUSCA - MAÏTO <hermes.belusca-maito@reactos.org>
Sun, 1 Sep 2019 20:58:43 +0000 (22:58 +0200)
Fix for WINED3DCFG and OPENGLCFG.
CORE-16330

dll/cpl/openglcfg/general.c
dll/cpl/wined3dcfg/general.c

index 0b9db4c..f9376ed 100644 (file)
@@ -173,7 +173,10 @@ INT_PTR CALLBACK GeneralPageProc(HWND hWndDlg, UINT uMsg, WPARAM wParam, LPARAM
             if (LOWORD(wParam) == IDC_RENDERER ||
                 LOWORD(wParam) == IDC_DEBUG_OUTPUT)
             {
-                PropSheet_Changed(GetParent(hWndDlg), hWndDlg);
+                if (HIWORD(wParam) == CBN_SELCHANGE)
+                {
+                    PropSheet_Changed(GetParent(hWndDlg), hWndDlg);
+                }
             }
             break;
 
index 659b5d1..b7a1782 100644 (file)
@@ -154,7 +154,7 @@ INT_PTR CALLBACK GeneralPageProc(HWND hWndDlg, UINT uMsg, WPARAM wParam, LPARAM
             return TRUE;
 
         case WM_COMMAND:
-            if (LOWORD(wParam) > IDC_MIN && LOWORD(wParam) < IDC_MAX)
+            if (LOWORD(wParam) > IDC_MIN && LOWORD(wParam) < IDC_MAX && HIWORD(wParam) == CBN_SELCHANGE)
                 PropSheet_Changed(GetParent(hWndDlg), hWndDlg);
             break;