Dmitry Timoshkov : comctl32: Initialize item. mask before sending HDM_GETITEM message.
Alexandre Julliard
julliard at winehq.org
Mon Feb 22 08:46:52 CST 2010
Module: wine
Branch: master
Commit: 27e9b5bdb420d497af92fb8e9c4a6727a6ea8351
URL: http://source.winehq.org/git/wine.git/?a=commit;h=27e9b5bdb420d497af92fb8e9c4a6727a6ea8351
Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date: Mon Feb 22 14:54:17 2010 +0800
comctl32: Initialize item.mask before sending HDM_GETITEM message.
---
dlls/comctl32/tests/listview.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/comctl32/tests/listview.c b/dlls/comctl32/tests/listview.c
index 0a147b6..b224192 100644
--- a/dlls/comctl32/tests/listview.c
+++ b/dlls/comctl32/tests/listview.c
@@ -4312,8 +4312,11 @@ static void test_header_notification(void)
ret = SendMessage(header, HDM_GETITEMCOUNT, 0, 0);
ok(ret == 1, "expected header item count 1, got %ld\n", ret);
+ memset(&item, 0, sizeof(item));
+ item.mask = HDI_WIDTH;
ret = SendMessage(header, HDM_GETITEMA, 0, (LPARAM)&item);
ok(ret, "HDM_GETITEM failed\n");
+ ok(item.cxy == 100, "expected 100, got %d\n", item.cxy);
nmh.hdr.hwndFrom = header;
nmh.hdr.idFrom = GetWindowLongPtr(header, GWLP_ID);
More information about the wine-cvs
mailing list