[CPL] Do not enable the "Apply" button unconditionally (#1876)

Fix for WINED3DCFG and OPENGLCFG.
CORE-16330
This commit is contained in:
Bișoc George 2019-09-01 22:58:43 +02:00 committed by Hermès BÉLUSCA - MAÏTO
parent 12e2039743
commit 9efe8dab89
2 changed files with 5 additions and 2 deletions

View 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;

View 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;