Module: wine Branch: master Commit: b0dcfa7a23f7c2421597a7f2cd74379693297727 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b0dcfa7a23f7c2421597a7f2cd...
Author: Nicolas Le Cam niko.lecam@gmail.com Date: Mon Aug 3 20:48:22 2009 +0200
comdlg32/tests: Fix a failing test on Win2k and below.
---
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..99d2310 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 below */ + "Get(Max)TextRows returned %d (expected 0)\n", maxtextrows); }