[PATCH] Fixed wrong index draw.c

Marcus Meissner marcus at jet.franken.de
Fri Mar 2 01:11:04 CST 2007


COLOR_BTNFACE is from the wrong set, use EDGE_FILL
which will be translated to it.

Spotted by Coverity. (CID 490)

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

diff --git a/dlls/uxtheme/draw.c b/dlls/uxtheme/draw.c
index bad4471..003cf20 100644
--- a/dlls/uxtheme/draw.c
+++ b/dlls/uxtheme/draw.c
@@ -1389,7 +1389,7 @@ static HRESULT draw_rect_edge (HDC hdc,
         LTInnerI = RBInnerI = LTRBInnerFlat[uType & (BDR_INNER|BDR_OUTER)];
         LTOuterI = RBOuterI = LTRBOuterFlat[uType & (BDR_INNER|BDR_OUTER)];
 
-        if( LTInnerI != -1 ) LTInnerI = RBInnerI = COLOR_BTNFACE;
+        if( LTInnerI != -1 ) LTInnerI = RBInnerI = EDGE_FILL;
     }
     else if(uFlags & BF_SOFT)
     {
-- 
1.4.3.4



More information about the wine-patches mailing list