Skip to content

Commit

Permalink
[CONTROL] OpenShellFolder: Add file browser fallback
Browse files Browse the repository at this point in the history
If Explorer shell is not available, use ReactOS's alternative file browser instead.
CORE-19648
  • Loading branch information
TAN-Gaming committed Jun 13, 2024
1 parent 48c036e commit 8398c9f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions base/applications/control/control.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,16 @@ OpenShellFolder(LPWSTR lpFolderCLSID)
WCHAR szParameters[MAX_PATH];

/*
* Open a shell folder using "explorer.exe". The passed CLSIDs
* are all subfolders of the "Control Panel" shell folder.
* Open a shell folder using "explorer.exe". If Explorer shell is not
* available, use ReactOS's alternative file browser instead.
* The passed CLSIDs are all subfolders of the "Control Panel" shell folder.
*/
StringCbCopyW(szParameters, sizeof(szParameters), L"/n,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\\::{21EC2020-3AEA-1069-A2DD-08002B30309D}");
StringCbCatW(szParameters, sizeof(szParameters), lpFolderCLSID);

return (INT_PTR)ShellExecuteW(NULL,
L"open",
L"explorer.exe",
GetShellWindow() ? L"explorer.exe" : L"filebrowser.exe",
szParameters,
NULL,
SW_SHOWDEFAULT) > 32;
Expand Down

0 comments on commit 8398c9f

Please sign in to comment.