mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
comctl32: header: fix bug found out by running valgrind on the regression tests.
This commit is contained in:
parent
63ca94c419
commit
6e022a3a28
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user