https://git.reactos.org/?p=reactos.git;a=commitdiff;h=9efe8dab8952bbb268594…
commit 9efe8dab8952bbb2685941dacc7e4fa684b92bc2
Author: Bișoc George <fraizeraust99(a)gmail.com>
AuthorDate: Sun Sep 1 22:58:43 2019 +0200
Commit: Hermès BÉLUSCA - MAÏTO <hermes.belusca-maito(a)reactos.org>
CommitDate: Sun Sep 1 22:58:43 2019 +0200
[CPL] Do not enable the "Apply" button unconditionally (#1876)
Fix for WINED3DCFG and OPENGLCFG.
CORE-16330
---
dll/cpl/openglcfg/general.c | 5 ++++-
dll/cpl/wined3dcfg/general.c | 2 +-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/dll/cpl/openglcfg/general.c b/dll/cpl/openglcfg/general.c
index 0b9db4ca219..f9376ed0b8c 100644
--- a/dll/cpl/openglcfg/general.c
+++ b/dll/cpl/openglcfg/general.c
@@ -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;
diff --git a/dll/cpl/wined3dcfg/general.c b/dll/cpl/wined3dcfg/general.c
index 659b5d1fac9..b7a178281f3 100644
--- a/dll/cpl/wined3dcfg/general.c
+++ b/dll/cpl/wined3dcfg/general.c
@@ -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;