[PATCH] msvcrt: Use RtlQueryTimeZoneInformation when MUI not required.
Zebediah Figura
z.figura12 at gmail.com
Thu Dec 20 21:50:58 CST 2018
On 12/20/2018 04:46 PM, Alistair Leslie-Hughes wrote:
> TIME_ZoneID copied from dlls/kernel32/time.c
>
> Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46266
> Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
> ---
>
> If we dont care about an invalid TIME_ZONE then we have the possiblity
> to use GetDaylightFlag to reduce the amount of code.
> MSVCRT__ftime64
> ....
> buf->timezone = tzinfo.Bias +
> ( tzid == TIME_ZONE_ID_STANDARD ? tzinfo.StandardBias :
> ( tzid == TIME_ZONE_ID_DAYLIGHT ? tzinfo.DaylightBias : 0 ));
>
> dlls/msvcrt/time.c | 144 ++++++++++++++++++++++++++++++++++++++++++++++++++++-
> 1 file changed, 143 insertions(+), 1 deletion(-)
>
MSDN says that the timezone field is filled in from _timezone, and
presumably also dstflag is filled in from _daylight. This could probably
be tested, and, if true, seems much cleaner.
More information about the wine-devel
mailing list