diff --git a/dlls/comctl32/header.c b/dlls/comctl32/header.c index b71c9e133e..5b62ddae3b 100644 --- a/dlls/comctl32/header.c +++ b/dlls/comctl32/header.c @@ -402,6 +402,7 @@ HEADER_DrawItem (HWND hwnd, HDC hdc, INT iItem, BOOL bHotTrack, LRESULT lCDFlags if (phdi->fmt & HDF_STRING) { RECT textRect; + SetRectEmpty(&textRect); DrawTextW (hdc, phdi->pszText, -1, &textRect, DT_LEFT|DT_VCENTER|DT_SINGLELINE|DT_CALCRECT); cw = textRect.right - textRect.left + 2 * infoPtr->iMargin;