[3/3] comctl32/listview: A couple of LVM_GETITEM tests with incomplete masks

Nikolay Sivov bunglehead at gmail.com
Tue Apr 28 14:34:04 CDT 2009


Changelog:
    - A couple of LVM_GETITEM tests with incomplete masks

>From 5a85a44bfccd240a69bb9bea286b2d86cce0b222 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <bunglehead at gmail.com>
Date: Tue, 28 Apr 2009 23:29:48 +0400
Subject: A couple of LVM_GETITEM tests with incomplete masks

---
 dlls/comctl32/tests/listview.c |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/dlls/comctl32/tests/listview.c b/dlls/comctl32/tests/listview.c
index 0ad3175..7be6b71 100644
--- a/dlls/comctl32/tests/listview.c
+++ b/dlls/comctl32/tests/listview.c
@@ -805,6 +805,20 @@ static void test_items(void)
     ok(r != 0, "ret %d\n", r);
     todo_wine ok(item.state == LVIS_DROPHILITED, "got state %x, expected %x\n", item.state, LVIS_DROPHILITED);
 
+    /* some notnull but meaningless masks */
+    memset (&item, 0, sizeof(item));
+    item.mask = LVIF_NORECOMPUTE;
+    item.iItem = 0;
+    item.iSubItem = 0;
+    r = SendMessage(hwnd, LVM_GETITEMA, 0, (LPARAM) &item);
+    ok(r != 0, "ret %d\n", r);
+    memset (&item, 0, sizeof(item));
+    item.mask = LVIF_DI_SETITEM;
+    item.iItem = 0;
+    item.iSubItem = 0;
+    r = SendMessage(hwnd, LVM_GETITEMA, 0, (LPARAM) &item);
+    ok(r != 0, "ret %d\n", r);
+
     DestroyWindow(hwnd);
 }
 
-- 
1.5.6.5





More information about the wine-patches mailing list