[SHELL32] Control_DoWindow: Add file browser fallback

If Explorer shell is not available, use ReactOS's alternative file browser instead.
CORE-19648
This commit is contained in:
Thamatip Chitpong 2024-06-08 23:15:16 +07:00
parent 8398c9fcfb
commit 2d9a4b4a87

View file

@ -732,9 +732,10 @@ static void Control_DoWindow(CPanel* panel, HWND hWnd, HINSTANCE hInst)
#else #else
static void Control_DoWindow(CPanel* panel, HWND hWnd, HINSTANCE hInst) static void Control_DoWindow(CPanel* panel, HWND hWnd, HINSTANCE hInst)
{ {
/* NOTE: If Explorer shell is not available, use ReactOS's alternative file browser instead */
ShellExecuteW(NULL, ShellExecuteW(NULL,
L"open", L"open",
L"explorer.exe", GetShellWindow() ? L"explorer.exe" : L"filebrowser.exe",
L"::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\\::{21EC2020-3AEA-1069-A2DD-08002B30309D}", L"::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\\::{21EC2020-3AEA-1069-A2DD-08002B30309D}",
NULL, NULL,
SW_SHOWDEFAULT); SW_SHOWDEFAULT);