comctl32: fix typo in TOOLBAR_SetButtonSize code

Igor Tarasov tarasov.igor at gmail.com
Sun Apr 19 07:49:18 CDT 2009


It seems that this typo was introduced due to copy-pasting. Though
situations where this might produce problem are rare (changing button
size with only width set), there might be some.

-- 
Igor
-------------- next part --------------
diff --git a/dlls/comctl32/toolbar.c b/dlls/comctl32/toolbar.c
index fe4c539..5caac96 100644
--- a/dlls/comctl32/toolbar.c
+++ b/dlls/comctl32/toolbar.c
@@ -4534,7 +4534,7 @@ TOOLBAR_SetButtonSize (HWND hwnd, LPARAM lParam)
      * 22 high. Demonstarted in ControlSpy Toolbar. GLA 3/02
      */
     if (cx == 0) cx = 24;
-    if (cy == 0) cx = 22;
+    if (cy == 0) cy = 22;
     
     cx = max(cx, infoPtr->szPadding.cx + infoPtr->nBitmapWidth);
     cy = max(cy, infoPtr->szPadding.cy + infoPtr->nBitmapHeight);


More information about the wine-patches mailing list