mirror of
https://github.com/reactos/reactos.git
synced 2024-11-23 11:33:31 +08:00
[CONTROL] OpenShellFolder: Add file browser fallback
If Explorer shell is not available, use ReactOS's alternative file browser instead. CORE-19648
This commit is contained in:
parent
48c036e7e7
commit
8398c9fcfb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user