Alexandre Julliard : user32/tests: Fix the listbox delete test on NT4.

Alexandre Julliard julliard at winehq.org
Tue Jun 2 08:44:33 CDT 2009


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Jun  2 11:56:42 2009 +0200

user32/tests: Fix the listbox delete test on NT4.

---

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

diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c
index 1db5146..45ef814 100644
--- a/dlls/user32/tests/msg.c
+++ b/dlls/user32/tests/msg.c
@@ -11072,7 +11072,9 @@ static void check_lb_state_dbg(HWND listbox, int count, int cur_sel,
     ret = CallWindowProcA(listbox_orig_proc, listbox, LB_GETCURSEL, 0, 0);
     ok_(__FILE__, line)(ret == cur_sel, "expected cur sel %d, got %ld\n", cur_sel, ret);
     ret = CallWindowProcA(listbox_orig_proc, listbox, LB_GETCARETINDEX, 0, 0);
-    ok_(__FILE__, line)(ret == caret_index, "expected caret index %d, got %ld\n", caret_index, ret);
+    ok_(__FILE__, line)(ret == caret_index ||
+                        broken(cur_sel == -1 && caret_index == 0 && ret == -1),  /* nt4 */
+                        "expected caret index %d, got %ld\n", caret_index, ret);
     ret = CallWindowProcA(listbox_orig_proc, listbox, LB_GETTOPINDEX, 0, 0);
     ok_(__FILE__, line)(ret == top_index, "expected top index %d, got %ld\n", top_index, ret);
 }




More information about the wine-cvs mailing list