[SHELL32] Enable OK Run dialog button on combo change (#7909)

CORE-20125
This commit is contained in:
Whindmar Saksit 2025-04-19 14:18:08 +02:00 committed by GitHub
parent 2fe3073697
commit b42b015cc6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}
}