Commit 62ec2387 authored by Rein Klazes's avatar Rein Klazes Committed by Alexandre Julliard

Correct the calculation of the year for the 31'st of December of leap

years.
parent dc78e9a5
......@@ -449,6 +449,7 @@ VOID WINAPI RtlTimeToTimeFields(
TimeFields->Year += DeltaYear * 4;
Days -= DeltaYear * DAYSPERNORMALQUADRENNIUM;
DeltaYear = Days / DAYSPERNORMALYEAR;
if( DeltaYear > 3) DeltaYear = 3; /* fix 31 Dec of every leap year */
TimeFields->Year += DeltaYear;
Days -= DeltaYear * DAYSPERNORMALYEAR;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment