- Fix incorrect leap year days checking condition, spotted by Gabriel Iliardi.
See issue #4917 for more details.

svn path=/trunk/; revision=43698
This commit is contained in:
Aleksey Bragin 2009-10-23 13:19:36 +00:00
parent 612660aeee
commit 1e7aa70379

View file

@ -192,8 +192,8 @@ RtlTimeFieldsToTime(
TimeFields->Hour < 0 || TimeFields->Hour > 23 ||
TimeFields->Month < 1 || TimeFields->Month > 12 ||
TimeFields->Day < 1 ||
TimeFields->Day > MonthLengths[TimeFields->Month == 2 ||
IsLeapYear(TimeFields->Year)][TimeFields->Month - 1] ||
TimeFields->Day >
MonthLengths[IsLeapYear(TimeFields->Year)][TimeFields->Month - 1] ||
TimeFields->Year < 1601)
{
return FALSE;