Author: fireball
Date: Fri Oct 23 15:19:36 2009
New Revision: 43698
URL:
http://svn.reactos.org/svn/reactos?rev=43698&view=rev
Log:
[rtl]
- Fix incorrect leap year days checking condition, spotted by Gabriel Iliardi.
See issue #4917 for more details.
Modified:
trunk/reactos/lib/rtl/time.c
Modified: trunk/reactos/lib/rtl/time.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/time.c?rev=43698&a…
==============================================================================
--- trunk/reactos/lib/rtl/time.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/time.c [iso-8859-1] Fri Oct 23 15:19:36 2009
@@ -192,8 +192,8 @@
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;