comdlg32/tests: Fix a failing test on Win2k and above.

Nicolas Le Cam niko.lecam at gmail.com
Mon Aug 3 13:48:22 CDT 2009


---
 dlls/comdlg32/tests/filedlg.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/comdlg32/tests/filedlg.c b/dlls/comdlg32/tests/filedlg.c
index a1536ec..fc06249 100644
--- a/dlls/comdlg32/tests/filedlg.c
+++ b/dlls/comdlg32/tests/filedlg.c
@@ -48,7 +48,8 @@ static void toolbarcheck( HWND hDlg)
     ret = SendMessage( ctrl, TB_ADDSTRING, 0, (LPARAM)"winetestwinetest\0\0");
     ok( ret == 0, "addstring returned %d (expected 0)\n", ret);
     maxtextrows = SendMessage( ctrl, TB_GETTEXTROWS, 0, 0);
-    ok( maxtextrows == 0, "Get(Max)TextRows returned %d (expected 0)\n", maxtextrows);
+    ok( maxtextrows == 0 || broken(maxtextrows == 1),  /* Win2k and above */
+        "Get(Max)TextRows returned %d (expected 0)\n", maxtextrows);
 }
 
 
-- 
1.6.0.4


--=-f0kiABXHuyoFNvRpLsOW--




More information about the wine-patches mailing list