comctl32/monthcal: Fix a test skip condition - zero is a valid day of week.

This commit is contained in:
Nikolay Sivov 2009-10-11 00:32:59 +04:00 committed by Alexandre Julliard
parent 6b72f16906
commit 22dddce999
1 changed files with 6 additions and 6 deletions

View File

@ -1584,18 +1584,18 @@ static void test_monthcal_selrange(void)
expect(st.wYear, range[0].wYear);
expect(st.wMonth, range[0].wMonth);
expect(st.wDay, range[0].wDay);
if (range[0].wDayOfWeek == 0)
if (range[0].wDayOfWeek != st.wDayOfWeek)
{
win_skip("comctl32 <= 4.70 doesn't set some values\n");
old_comctl32 = TRUE;
}
else
{
expect(st.wDayOfWeek, range[0].wDayOfWeek);
expect(st.wHour, range[0].wHour);
expect(st.wMinute, range[0].wMinute);
expect(st.wSecond, range[0].wSecond);
expect(st.wMilliseconds, range[0].wMilliseconds);
expect(st.wDayOfWeek, range[0].wDayOfWeek);
expect(st.wHour, range[0].wHour);
expect(st.wMinute, range[0].wMinute);
expect(st.wSecond, range[0].wSecond);
expect(st.wMilliseconds, range[0].wMilliseconds);
}
expect(st.wYear, range[1].wYear);