Reece H. Dunn : winecfg: Allow theme colour names to be case insensitive when reading them from a file .

Alexandre Julliard julliard at winehq.org
Mon Feb 11 14:19:34 CST 2008


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

Author: Reece H. Dunn <msclrhd at gmail.com>
Date:   Sun Feb 10 17:35:55 2008 +0000

winecfg: Allow theme colour names to be case insensitive when reading them from a file.

---

 programs/winecfg/theme.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/programs/winecfg/theme.c b/programs/winecfg/theme.c
index 29cee6b..7eb444e 100644
--- a/programs/winecfg/theme.c
+++ b/programs/winecfg/theme.c
@@ -543,7 +543,7 @@ static void set_color_from_theme(WCHAR *keyName, COLORREF color)
 
     for (i=0; i<sizeof(metrics)/sizeof(metrics[0]); i++)
     {
-        if (strcmp(metrics[i].color_reg, keyNameA)==0)
+        if (lstrcmpiA(metrics[i].color_reg, keyNameA)==0)
         {
             metrics[i].color = color;
             save_sys_color(i, color);




More information about the wine-cvs mailing list