From d2e169fadd90e345fb8b6c1aeed7cda8fb095fda Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Sat, 28 Nov 2009 17:31:52 +0300 Subject: [PATCH] comctl32/header: Avoid uninitialized memory passed to HDM_INSERTITEM, some fields are always copied. --- dlls/comctl32/tests/header.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/comctl32/tests/header.c b/dlls/comctl32/tests/header.c index b7fe8e565e4..8d6ad1ffef7 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; -- 2.11.4.GIT