uxtheme: Don't back up colors etc. when a theme is already active.
This commit is contained in:
parent
a0ad98a26f
commit
83974b21fa
|
@ -412,7 +412,7 @@ HRESULT UXTHEME_SetActiveTheme(PTHEME_FILE tf)
|
|||
WCHAR tmp[2];
|
||||
HRESULT hr;
|
||||
|
||||
if(tf) UXTHEME_BackupSystemMetrics();
|
||||
if(tf && !bThemeActive) UXTHEME_BackupSystemMetrics();
|
||||
hr = MSSTYLES_SetActiveTheme(tf, TRUE);
|
||||
if(FAILED(hr))
|
||||
return hr;
|
||||
|
|
Loading…
Reference in New Issue