From 43f38ac95988833deecc64232b99e4fd0ccc779f Mon Sep 17 00:00:00 2001 From: DavidXanatos Date: Thu, 6 Jan 2022 23:09:01 +0100 Subject: [PATCH] Update verify.c --- Sandboxie/core/drv/verify.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sandboxie/core/drv/verify.c b/Sandboxie/core/drv/verify.c index 016a3245..e648f420 100644 --- a/Sandboxie/core/drv/verify.c +++ b/Sandboxie/core/drv/verify.c @@ -470,9 +470,9 @@ _FX LONGLONG KphGetDateInterval(CSHORT days, CSHORT months, CSHORT years) { LARGE_INTEGER date; TIME_FIELDS timeFiled = { 0 }; - timeFiled.Day = days; - timeFiled.Month = months; - timeFiled.Year = years; + timeFiled.Day = 1 + days; + timeFiled.Month = 1 + months; + timeFiled.Year = 1601 + years; RtlTimeFieldsToTime(&timeFiled, &date); return date.QuadPart; }