Swap CalcToolbar and paint rectangle computation to the correct order.
diff --git a/dlls/comctl32/toolbar.c b/dlls/comctl32/toolbar.c
index 483958b..9436ef0 100644
--- a/dlls/comctl32/toolbar.c
+++ b/dlls/comctl32/toolbar.c
@@ -3794,10 +3794,11 @@
TRACE("\n");
+ TOOLBAR_CalcToolbar( hwnd );
+
/* fill ps.rcPaint with a default rect */
memcpy(&(ps.rcPaint), &(infoPtr->rcBound), sizeof(infoPtr->rcBound));
- TOOLBAR_CalcToolbar( hwnd );
hdc = wParam==0 ? BeginPaint(hwnd, &ps) : (HDC)wParam;
TOOLBAR_Refresh (hwnd, hdc, &ps);
if (!wParam) EndPaint (hwnd, &ps);