From: Kamil Hornicek Date: Fri, 17 Feb 2017 23:39:39 +0000 (+0000) Subject: [SHELL32] X-Git-Tag: ReactOS-0.4.4-CLT2017~267 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=67e4aa500ed6bb771d457d2628eeed3505fa8df9 [SHELL32] - Make the "Open with" dialog start in Program Files as is done in Windows (doesn't really changes anything because comdlg32 doesn't expand environment variables). svn path=/trunk/; revision=73823 --- diff --git a/reactos/dll/win32/shell32/COpenWithMenu.cpp b/reactos/dll/win32/shell32/COpenWithMenu.cpp index 75d61adaf57..8812b73b683 100644 --- a/reactos/dll/win32/shell32/COpenWithMenu.cpp +++ b/reactos/dll/win32/shell32/COpenWithMenu.cpp @@ -907,6 +907,7 @@ VOID COpenWithDialog::Browse() ofn.Flags = OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST; ofn.nMaxFile = (sizeof(wszPath) / sizeof(WCHAR)); ofn.lpstrFile = wszPath; + ofn.lpstrInitialDir = L"%programfiles%"; /* Init title */ if (LoadStringW(shell32_hInstance, IDS_OPEN_WITH, wszTitle, sizeof(wszTitle) / sizeof(WCHAR)))