uxtheme: Don't back up colors etc. when a theme is already active.

This commit is contained in:
Frank Richter 2006-08-14 03:19:48 +02:00 committed by Alexandre Julliard
parent a0ad98a26f
commit 83974b21fa
1 changed files with 1 additions and 1 deletions

View File

@ -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;