mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 18:15:58 +00:00
[rtl]
- 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:
parent
612660aeee
commit
1e7aa70379
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue