From b42b015cc67e1417ecf680588d7fce41b598c602 Mon Sep 17 00:00:00 2001 From: Whindmar Saksit Date: Sat, 19 Apr 2025 14:18:08 +0200 Subject: [PATCH] [SHELL32] Enable OK Run dialog button on combo change (#7909) CORE-20125 --- dll/win32/shell32/dialogs/dialogs.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dll/win32/shell32/dialogs/dialogs.cpp b/dll/win32/shell32/dialogs/dialogs.cpp index 6e11361eea4..dfab1321b17 100644 --- a/dll/win32/shell32/dialogs/dialogs.cpp +++ b/dll/win32/shell32/dialogs/dialogs.cpp @@ -755,9 +755,11 @@ static INT_PTR CALLBACK RunDlgProc(HWND hwnd, UINT message, WPARAM wParam, LPARA case IDC_RUNDLG_EDITPATH: { if (HIWORD(wParam) == CBN_EDITCHANGE) - { EnableOkButtonFromEditContents(hwnd); - } + + // Delay handling dropdown changes until the edit box has been updated. + if (HIWORD(wParam) == CBN_SELCHANGE) + PostMessage(hwnd, message, MAKELONG(IDC_RUNDLG_EDITPATH, CBN_EDITCHANGE), lParam); return TRUE; } }