mirror of
https://github.com/reactos/wine.git
synced 2025-01-19 02:02:18 +00:00
Correct the calculation of the year for the 31'st of December of leap
years.
This commit is contained in:
parent
dc78e9a595
commit
62ec238792
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user