Austin English : user32: Fix a compiler warning on mingw.

Alexandre Julliard julliard at winehq.org
Thu Jul 1 11:19:33 CDT 2010


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

Author: Austin English <austinenglish at gmail.com>
Date:   Thu Jul  1 10:20:33 2010 -0500

user32: Fix a compiler warning on mingw.

---

 dlls/user32/sysparams.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/dlls/user32/sysparams.c b/dlls/user32/sysparams.c
index e6d2386..3d4075f 100644
--- a/dlls/user32/sysparams.c
+++ b/dlls/user32/sysparams.c
@@ -941,11 +941,7 @@ void SYSPARAMS_Init(void)
         }
 
         /* last chance, take the default */
-        if (!bOk)
-        {
-            int iNumColors = sscanf( DefSysColors[i*2+1], " %d %d %d", &r, &g, &b );
-            assert (iNumColors==3);
-        }
+        if (!bOk) sscanf( DefSysColors[i*2+1], " %d %d %d", &r, &g, &b );
 
         SYSPARAMS_SetSysColor( i, RGB(r,g,b) );
     }




More information about the wine-cvs mailing list