Commit 87441ff8 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

comctl32/tests: Fix some test failures on older comctl32 versions.

parent 5ca70071
......@@ -811,7 +811,11 @@ static void test_monthcal_currdate(void)
st_new.wMonth = 1;
st_new.wDay = 1;
res = SendMessage(hwnd, MCM_SETCURSEL, 0, (LPARAM)&st_new);
expect(0, res);
ok(0 == res ||
broken(1 == res), /* comctl32 <= 4.72 */
"Expected 0, got %d\n", res);
if (0 == res)
{
memset(&st_test, 0, sizeof(st_test));
res = SendMessage(hwnd, MCM_GETCURSEL, 0, (LPARAM)&st_test);
expect(1, res);
......@@ -821,6 +825,7 @@ static void test_monthcal_currdate(void)
expect(st_original.wHour, st_test.wHour);
expect(st_original.wMinute, st_test.wMinute);
expect(st_original.wSecond, st_test.wSecond);
}
/* setting selection equal to current reports success even if out range */
memset(&st_new, 0, sizeof(st_new));
......
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