[PATCH 02/16] [Comctl32]: header
Eric Pouech
eric.pouech at wanadoo.fr
Sun Oct 22 14:48:03 CDT 2006
- fixing some bugs found out by running valgrind on the
regression tests
A+
---
dlls/comctl32/header.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/comctl32/header.c b/dlls/comctl32/header.c
index 3b87da4..5f9011c 100644
--- a/dlls/comctl32/header.c
+++ b/dlls/comctl32/header.c
@@ -402,6 +402,7 @@ HEADER_DrawItem (HWND hwnd, HDC hdc, INT
if (phdi->fmt & HDF_STRING) {
RECT textRect;
+ SetRectEmpty(&textRect.left);
DrawTextW (hdc, phdi->pszText, -1,
&textRect, DT_LEFT|DT_VCENTER|DT_SINGLELINE|DT_CALCRECT);
cw = textRect.right - textRect.left + 2 * infoPtr->iMargin;
More information about the wine-patches
mailing list