[SHELL32] Set the Run dialog to use the newer style browse for file dialog. (#2728)

Apply the OFN_EXPLORER flag to the Run dialog so the dialog uses the newer style browse dialog.
This commit is contained in:
Jared Smudde 2020-05-03 22:53:35 -05:00 committed by GitHub
parent 86572f1f69
commit 5b7be1572b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -684,7 +684,7 @@ static INT_PTR CALLBACK RunDlgProc(HWND hwnd, UINT message, WPARAM wParam, LPARA
ofn.lpstrFile = szFName;
ofn.nMaxFile = _countof(szFName) - 1;
ofn.lpstrTitle = szCaption;
ofn.Flags = OFN_ENABLESIZING | OFN_FILEMUSTEXIST | OFN_HIDEREADONLY | OFN_PATHMUSTEXIST;
ofn.Flags = OFN_ENABLESIZING | OFN_FILEMUSTEXIST | OFN_HIDEREADONLY | OFN_PATHMUSTEXIST | OFN_EXPLORER;
ofn.lpstrInitialDir = prfdp->lpstrDirectory;
if (NULL == (hComdlg = LoadLibraryExW(L"comdlg32", NULL, 0)) ||