ntdll: Consistently use time_t in timezone matching.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2022-01-21 14:18:26 +01:00
parent 208c04111e
commit abfa6bf860
1 changed files with 3 additions and 3 deletions

View File

@ -2254,12 +2254,12 @@ static void find_reg_tz_info(RTL_DYNAMIC_TIME_ZONE_INFORMATION *tzi, const char*
tzi->DaylightDate.wDay, tzi->DaylightDate.wMonth, tzi->DaylightDate.wYear);
}
static time_t find_dst_change(unsigned long min, unsigned long max, int *is_dst)
static time_t find_dst_change(time_t start, time_t end, int *is_dst)
{
time_t start;
struct tm *tm;
ULONGLONG min = (sizeof(time_t) == sizeof(int)) ? (ULONG)start : start;
ULONGLONG max = (sizeof(time_t) == sizeof(int)) ? (ULONG)end : end;
start = min;
tm = localtime(&start);
*is_dst = !tm->tm_isdst;
TRACE("starting date isdst %d, %s", !*is_dst, ctime(&start));