dlls/comctl32/listview.c simplficiation

Gerald Pfeifer gerald at pfeifer.com
Mon Dec 3 14:16:46 CST 2007


We are approaching the end. ;-)

Gerald

ChangeLog:
Simplify condition based on WPARAM always being >= 0.

Index: dlls/comctl32/rebar.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/rebar.c,v
retrieving revision 1.143
diff -u -3 -p -r1.143 rebar.c
--- dlls/comctl32/rebar.c	2 Nov 2007 13:12:30 -0000	1.143
+++ dlls/comctl32/rebar.c	3 Dec 2007 20:14:53 -0000
@@ -2797,7 +2797,7 @@ REBAR_GetFont (const REBAR_INFO *infoPtr
 static LRESULT
 REBAR_PushChevron(const REBAR_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
 {
-    if (wParam >= 0 && (UINT)wParam < infoPtr->uNumBands)
+    if ((UINT)wParam < infoPtr->uNumBands)
     {
         NMREBARCHEVRON nmrbc;
         REBAR_BAND *lpBand = &infoPtr->bands[wParam];



More information about the wine-patches mailing list