kernel32: Use Rtl function when the time zone name is useless.

Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Akihiro Sagawa 2018-12-18 00:31:45 +09:00 committed by Alexandre Julliard
parent 51f7680dcc
commit 2ce076a502
1 changed files with 4 additions and 5 deletions

View File

@ -689,8 +689,7 @@ BOOL WINAPI SystemTimeToTzSpecificLocalTime(
}
else
{
if (GetTimeZoneInformation(&tzinfo) == TIME_ZONE_ID_INVALID)
return FALSE;
RtlQueryTimeZoneInformation((RTL_TIME_ZONE_INFORMATION *)&tzinfo);
}
if (!SystemTimeToFileTime(lpUniversalTime, &ft))
@ -735,8 +734,7 @@ BOOL WINAPI TzSpecificLocalTimeToSystemTime(
}
else
{
if (GetTimeZoneInformation(&tzinfo) == TIME_ZONE_ID_INVALID)
return FALSE;
RtlQueryTimeZoneInformation((RTL_TIME_ZONE_INFORMATION *)&tzinfo);
}
if (!SystemTimeToFileTime(lpLocalTime, &ft))
@ -1314,7 +1312,8 @@ VOID WINAPI GetSystemTime(LPSYSTEMTIME systime)
BOOL WINAPI GetDaylightFlag(void)
{
TIME_ZONE_INFORMATION tzinfo;
return GetTimeZoneInformation( &tzinfo) == TIME_ZONE_ID_DAYLIGHT;
RtlQueryTimeZoneInformation((RTL_TIME_ZONE_INFORMATION *)&tzinfo);
return (TIME_ZoneID(&tzinfo) == TIME_ZONE_ID_DAYLIGHT);
}
/***********************************************************************