Update verify.c
This commit is contained in:
parent
8eacbef11b
commit
43f38ac959
|
@ -470,9 +470,9 @@ _FX LONGLONG KphGetDateInterval(CSHORT days, CSHORT months, CSHORT years)
|
||||||
{
|
{
|
||||||
LARGE_INTEGER date;
|
LARGE_INTEGER date;
|
||||||
TIME_FIELDS timeFiled = { 0 };
|
TIME_FIELDS timeFiled = { 0 };
|
||||||
timeFiled.Day = days;
|
timeFiled.Day = 1 + days;
|
||||||
timeFiled.Month = months;
|
timeFiled.Month = 1 + months;
|
||||||
timeFiled.Year = years;
|
timeFiled.Year = 1601 + years;
|
||||||
RtlTimeFieldsToTime(&timeFiled, &date);
|
RtlTimeFieldsToTime(&timeFiled, &date);
|
||||||
return date.QuadPart;
|
return date.QuadPart;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue