Module: wine Branch: master Commit: 9f6bd09ec0e6cd63d5d980577e1479d9795d817c URL: http://source.winehq.org/git/wine.git/?a=commit;h=9f6bd09ec0e6cd63d5d980577e...
Author: Nikolay Sivov bunglehead@gmail.com Date: Tue Apr 28 23:29:48 2009 +0400
comctl32/listview: 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); }