mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 17:52:56 +00:00
[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:
parent
ce0460b131
commit
50d260a7f0
1 changed files with 2 additions and 2 deletions
|
@ -1971,7 +1971,7 @@ ThemePageDlgProc(HWND hwndDlg,
|
||||||
{
|
{
|
||||||
WCHAR wszParams[1024];
|
WCHAR wszParams[1024];
|
||||||
WCHAR wszTheme[MAX_PATH];
|
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);
|
SHGetFolderPathAndSubDirW(0, CSIDL_RESOURCES, NULL, SHGFP_TYPE_DEFAULT, Themes[iTheme].ThemeFile, wszTheme);
|
||||||
swprintf(wszParams, format, wszTheme);
|
swprintf(wszParams, format, wszTheme);
|
||||||
|
@ -1979,7 +1979,7 @@ ThemePageDlgProc(HWND hwndDlg,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
RunControlPanelApplet(hwndDlg, L"desk.cpl desk,@Appearance /Action:ActivateMSTheme");
|
RunControlPanelApplet(hwndDlg, L"desk.cpl,,2 /Action:ActivateMSTheme");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue