comctl32/tests: Fix some test failures on older comctl32 versions.
This commit is contained in:
parent
5ca700713d
commit
87441ff83c
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue