Reactos

[TASKMGR] Process page: Allow using "Open File Location" functionality without running Explorer shell

If Explorer shell is not available, use ReactOS's alternative file browser instead.

+5 -2
+5 -2
base/applications/taskmgr/procpage.c
··· 1248 1248 1249 1249 StringCchPrintfW(pszCmdLine, dwLength, szCmdFormat, pszExePath); 1250 1250 1251 - /* Call the shell to open the file location and select it */ 1252 - ShellExecuteW(NULL, L"open", L"explorer.exe", pszCmdLine, NULL, SW_SHOWNORMAL); 1251 + /* Call the shell to open the file location and select it. If Explorer shell 1252 + * is not available, use ReactOS's alternative file browser instead. */ 1253 + ShellExecuteW(NULL, L"open", 1254 + GetShellWindow() ? L"explorer.exe" : L"filebrowser.exe", 1255 + pszCmdLine, NULL, SW_SHOWNORMAL); 1253 1256 1254 1257 Cleanup: 1255 1258 HeapFree(GetProcessHeap(), 0, pszCmdLine);