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

Alexandre Julliard julliard at wine.codeweavers.com
Mon Aug 14 05:16:22 CDT 2006


Module: wine
Branch: master
Commit: 83974b21fa2bde6fbfc066594648642ea8d39c34
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=83974b21fa2bde6fbfc066594648642ea8d39c34

Author: Frank Richter <frank.richter at gmail.com>
Date:   Mon Aug 14 03:19:48 2006 +0200

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

---

 dlls/uxtheme/system.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/uxtheme/system.c b/dlls/uxtheme/system.c
index 4799072..347074c 100644
--- a/dlls/uxtheme/system.c
+++ b/dlls/uxtheme/system.c
@@ -412,7 +412,7 @@ HRESULT UXTHEME_SetActiveTheme(PTHEME_FI
     WCHAR tmp[2];
     HRESULT hr;
 
-    if(tf) UXTHEME_BackupSystemMetrics();
+    if(tf && !bThemeActive) UXTHEME_BackupSystemMetrics();
     hr = MSSTYLES_SetActiveTheme(tf, TRUE);
     if(FAILED(hr))
         return hr;




More information about the wine-cvs mailing list