[SYSSETUP] fix theme switcher (#6930)

Switching themes during initial setup broke at some point relatively recently - following said regression, selecting a theme simply has no effect at all. This fixes that.
This commit is contained in:
Splitwirez 2024-05-24 16:14:32 -07:00 committed by GitHub
parent ce0460b131
commit 50d260a7f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1971,7 +1971,7 @@ ThemePageDlgProc(HWND hwndDlg,
{
WCHAR wszParams[1024];
WCHAR wszTheme[MAX_PATH];
WCHAR* format = L"desk.cpl desk,@Appearance /Action:ActivateMSTheme /file:\"%s\"";
WCHAR* format = L"desk.cpl,,2 /Action:ActivateMSTheme /file:\"%s\"";
SHGetFolderPathAndSubDirW(0, CSIDL_RESOURCES, NULL, SHGFP_TYPE_DEFAULT, Themes[iTheme].ThemeFile, wszTheme);
swprintf(wszParams, format, wszTheme);
@ -1979,7 +1979,7 @@ ThemePageDlgProc(HWND hwndDlg,
}
else
{
RunControlPanelApplet(hwndDlg, L"desk.cpl desk,@Appearance /Action:ActivateMSTheme");
RunControlPanelApplet(hwndDlg, L"desk.cpl,,2 /Action:ActivateMSTheme");
}
}
break;