mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 17:14:41 +00:00
[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.
This commit is contained in:
parent
6d16d27462
commit
cd0bb1af07
1 changed files with 5 additions and 2 deletions
|
@ -1248,8 +1248,11 @@ void ProcessPage_OnOpenFileLocation(void)
|
|||
|
||||
StringCchPrintfW(pszCmdLine, dwLength, szCmdFormat, pszExePath);
|
||||
|
||||
/* Call the shell to open the file location and select it */
|
||||
ShellExecuteW(NULL, L"open", L"explorer.exe", pszCmdLine, NULL, SW_SHOWNORMAL);
|
||||
/* Call the shell to open the file location and select it. If Explorer shell
|
||||
* is not available, use ReactOS's alternative file browser instead. */
|
||||
ShellExecuteW(NULL, L"open",
|
||||
GetShellWindow() ? L"explorer.exe" : L"filebrowser.exe",
|
||||
pszCmdLine, NULL, SW_SHOWNORMAL);
|
||||
|
||||
Cleanup:
|
||||
HeapFree(GetProcessHeap(), 0, pszCmdLine);
|
||||
|
|
Loading…
Reference in a new issue