toolbar: fix swp error

Huw D M Davies h.davies1 at physics.ox.ac.uk
Wed Apr 7 06:13:23 CDT 2004


        Huw Davies <huw at codeweavers.com>
        Fix dumb error from rev. 1.158
-- 
Huw Davies
huw at codeweavers.com
Index: toolbar.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/toolbar.c,v
retrieving revision 1.170
diff -u -r1.170 toolbar.c
--- toolbar.c	1 Apr 2004 20:59:59 -0000	1.170
+++ toolbar.c	7 Apr 2004 11:09:57 -0000
@@ -6218,7 +6218,7 @@
                     InvalidateRect(hwnd, &btnPtr->rect, TRUE);
         }
 
-        if((uPosFlags & (SWP_NOSIZE | SWP_NOMOVE)) == (SWP_NOSIZE | SWP_NOMOVE)) 
+        if((uPosFlags & (SWP_NOSIZE | SWP_NOMOVE)) != (SWP_NOSIZE | SWP_NOMOVE)) 
             SetWindowPos (hwnd, 0,  x,  y, cx, cy, uPosFlags | SWP_NOZORDER);
     }
     GetClientRect(hwnd, &infoPtr->client_rect);



More information about the wine-patches mailing list