Nikolay Sivov : comctl32/listview: Skip LVS_EX_CHECKBOXES tests when this style is unsupported.

Alexandre Julliard julliard at winehq.org
Wed Sep 23 11:02:56 CDT 2009


Module: wine
Branch: master
Commit: df3f2a1b13660ebad376e40401d6c3e74c68db15
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=df3f2a1b13660ebad376e40401d6c3e74c68db15

Author: Nikolay Sivov <bunglehead at gmail.com>
Date:   Wed Sep 23 01:56:02 2009 +0400

comctl32/listview: Skip LVS_EX_CHECKBOXES tests when this style is unsupported.

---

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

diff --git a/dlls/comctl32/tests/listview.c b/dlls/comctl32/tests/listview.c
index d0f2273..cd79fd5 100644
--- a/dlls/comctl32/tests/listview.c
+++ b/dlls/comctl32/tests/listview.c
@@ -837,7 +837,12 @@ static void test_checkboxes(void)
     item.mask = LVIF_STATE;
     item.stateMask = 0xffff;
     r = SendMessage(hwnd, LVM_GETITEMA, 0, (LPARAM) &item);
-    ok(item.state == 0x1ccc, "state %x\n", item.state);
+    if (item.state != 0x1ccc)
+    {
+        win_skip("LVS_EX_CHECKBOXES style is unavailable. Skipping.\n");
+        DestroyWindow(hwnd);
+        return;
+    }
 
     /* Now add an item without specifying a state and check that its state goes to 0x1000 */
     item.iItem = 2;




More information about the wine-cvs mailing list