Nikolay Sivov : comctl32/header: Avoid uninitialized memory passed to HDM_INSERTITEM, some fields are always copied.
Alexandre Julliard
julliard at winehq.org
Mon Nov 30 10:42:50 CST 2009
Module: wine
Branch: master
Commit: d2e169fadd90e345fb8b6c1aeed7cda8fb095fda
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d2e169fadd90e345fb8b6c1aeed7cda8fb095fda
Author: Nikolay Sivov <bunglehead at gmail.com>
Date: Sat Nov 28 17:31:52 2009 +0300
comctl32/header: Avoid uninitialized memory passed to HDM_INSERTITEM, some fields are always copied.
---
dlls/comctl32/tests/header.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/comctl32/tests/header.c b/dlls/comctl32/tests/header.c
index b7fe8e5..8d6ad1f 100644
--- a/dlls/comctl32/tests/header.c
+++ b/dlls/comctl32/tests/header.c
@@ -1267,6 +1267,7 @@ static void test_hds_nosizing(HWND hParent)
hChild = create_custom_header_control(hParent, FALSE);
+ memset(&hdItem, 0, sizeof(hdItem));
hdItem.mask = HDI_WIDTH;
hdItem.cxy = 80;
More information about the wine-cvs
mailing list