Nikolay Sivov : comctl32/listview: Fix a test failure on 4.7x.

Alexandre Julliard julliard at winehq.org
Mon Jun 22 09:04:15 CDT 2009


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

Author: Nikolay Sivov <bunglehead at gmail.com>
Date:   Sun Jun 21 16:49:19 2009 +0400

comctl32/listview: Fix a test failure on 4.7x.

---

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

diff --git a/dlls/comctl32/tests/listview.c b/dlls/comctl32/tests/listview.c
index 6f6fdf7..060171c 100644
--- a/dlls/comctl32/tests/listview.c
+++ b/dlls/comctl32/tests/listview.c
@@ -1362,7 +1362,9 @@ static void test_create(void)
     ok(NULL == GetDlgItem(hList, 0), "NULL dialog item expected\n");
     SendMessage(hList, LVM_SETEXTENDEDLISTVIEWSTYLE, 0, LVS_EX_HEADERDRAGDROP);
     hHeader = (HWND)SendMessage(hList, LVM_GETHEADER, 0, 0);
-    ok(IsWindow(hHeader), "Header should be created\n");
+    ok(IsWindow(hHeader) ||
+       broken(!IsWindow(hHeader)), /* 4.7x common controls */
+       "Header should be created\n");
     ok(hHeader == GetDlgItem(hList, 0), "Expected header as dialog item\n");
     DestroyWindow(hList);
 




More information about the wine-cvs mailing list