comctl32/listview: A couple of LVM_GETITEM tests with incomplete masks.

This commit is contained in:
Nikolay Sivov 2009-04-28 23:29:48 +04:00 committed by Alexandre Julliard
parent cd8b91f1bb
commit 9f6bd09ec0
1 changed files with 14 additions and 0 deletions

View File

@ -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);
}