Commit 6e022a3a authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

comctl32: header: fix bug found out by running valgrind on the regression tests.

parent 63ca94c4
...@@ -402,6 +402,7 @@ HEADER_DrawItem (HWND hwnd, HDC hdc, INT iItem, BOOL bHotTrack, LRESULT lCDFlags ...@@ -402,6 +402,7 @@ HEADER_DrawItem (HWND hwnd, HDC hdc, INT iItem, BOOL bHotTrack, LRESULT lCDFlags
if (phdi->fmt & HDF_STRING) { if (phdi->fmt & HDF_STRING) {
RECT textRect; RECT textRect;
SetRectEmpty(&textRect);
DrawTextW (hdc, phdi->pszText, -1, DrawTextW (hdc, phdi->pszText, -1,
&textRect, DT_LEFT|DT_VCENTER|DT_SINGLELINE|DT_CALCRECT); &textRect, DT_LEFT|DT_VCENTER|DT_SINGLELINE|DT_CALCRECT);
cw = textRect.right - textRect.left + 2 * infoPtr->iMargin; cw = textRect.right - textRect.left + 2 * infoPtr->iMargin;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment