Commit 5a0deb25 authored by Alexandre Julliard's avatar Alexandre Julliard

comctl32/tests: Fix status test failures on older Windows versions.

parent a561c5d4
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment