[SHELL32]
authorKamil Hornicek <kamil.hornicek@reactos.org>
Fri, 17 Feb 2017 23:39:39 +0000 (23:39 +0000)
committerKamil Hornicek <kamil.hornicek@reactos.org>
Fri, 17 Feb 2017 23:39:39 +0000 (23:39 +0000)
- 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

reactos/dll/win32/shell32/COpenWithMenu.cpp

index 75d61ad..8812b73 100644 (file)
@@ -907,6 +907,7 @@ VOID COpenWithDialog::Browse()
     ofn.Flags = OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST;
     ofn.nMaxFile = (sizeof(wszPath) / sizeof(WCHAR));
     ofn.lpstrFile = wszPath;
     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)))
 
     /* Init title */
     if (LoadStringW(shell32_hInstance, IDS_OPEN_WITH, wszTitle, sizeof(wszTitle) / sizeof(WCHAR)))