Eric Pouech : comctl32: header:
fix bug found out by running valgrind on the regression tests.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Nov 9 06:08:53 CST 2006
Module: wine
Branch: master
Commit: 6e022a3a280d2aa4bc5256332c7e8d75bc59b673
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6e022a3a280d2aa4bc5256332c7e8d75bc59b673
Author: Eric Pouech <eric.pouech at wanadoo.fr>
Date: Wed Nov 8 21:46:42 2006 +0100
comctl32: header: fix bug found out by running valgrind on the regression tests.
---
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 b71c9e1..5b62dda 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);
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-cvs
mailing list