[SHELL32] Set the Run dialog to use the newer style browse for file dialog. (#2728)
authorJared Smudde <computerwhiz02@hotmail.com>
Mon, 4 May 2020 03:53:35 +0000 (22:53 -0500)
committerGitHub <noreply@github.com>
Mon, 4 May 2020 03:53:35 +0000 (12:53 +0900)
Apply the OFN_EXPLORER flag to the Run dialog so the dialog uses the newer style browse dialog.

dll/win32/shell32/dialogs/dialogs.cpp

index 5903fe4..3d58448 100644 (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)) ||