Alexandre Julliard : comctl32/tests: Fix status test failures on older Windows versions.
Alexandre Julliard
julliard at winehq.org
Sat Aug 29 11:36:33 CDT 2009
Module: wine
Branch: master
Commit: 5a0deb25e124d37ab550ed451ee0a71becbbbd6b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5a0deb25e124d37ab550ed451ee0a71becbbbd6b
Author: Alexandre Julliard <julliard at winehq.org>
Date: Sat Aug 29 14:15:58 2009 +0200
comctl32/tests: Fix status test failures on older Windows versions.
---
dlls/comctl32/tests/status.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/comctl32/tests/status.c b/dlls/comctl32/tests/status.c
index 28df50f..c721c96 100644
--- a/dlls/comctl32/tests/status.c
+++ b/dlls/comctl32/tests/status.c
@@ -483,11 +483,11 @@ static void test_gettext(void)
/* A size of 1 only stores the NULL terminator */
buf[0] = 0xa;
r = SendMessage(hwndStatus, WM_GETTEXT, 1, (LPARAM)buf);
- expect(0, r);
- ok(!buf[0], "expected empty buffer\n");
+ ok( r == 0 || broken(r == 4), "Expected 0 got %d\n", r );
+ if (!r) ok(!buf[0], "expected empty buffer\n");
/* A size of 2 returns a length 1 */
r = SendMessage(hwndStatus, WM_GETTEXT, 2, (LPARAM)buf);
- expect(1, r);
+ ok( r == 1 || broken(r == 4), "Expected 1 got %d\n", r );
r = SendMessage(hwndStatus, WM_GETTEXT, sizeof(buf), (LPARAM)buf);
expect(4, r);
ok(!strcmp(buf, "Text"), "expected Text, got %s\n", buf);
More information about the wine-cvs
mailing list