Fix incorrect calculation of leap year in RtlTimeFieldsToTime().

This commit is contained in:
Rein Klazes 2004-04-02 19:28:53 +00:00 committed by Alexandre Julliard
parent 687197d8ba
commit 7568734411
1 changed files with 1 additions and 1 deletions

View File

@ -465,7 +465,7 @@ BOOLEAN WINAPI RtlTimeFieldsToTime(
rcTime += CurYear * DAYSPERNORMALYEAR;
for (CurMonth = 1; CurMonth < TimeFields.Month; CurMonth++)
{ rcTime += MonthLengths[IsLeapYear(CurYear)][CurMonth - 1];
{ rcTime += MonthLengths[IsLeapYear(TimeFields.Year)][CurMonth - 1];
}
rcTime += TimeFields.Day - 1;
rcTime *= SECSPERDAY;