[PATCH 2/2] msvcrt: Cache dstflag value in _ftime64.
Alistair Leslie-Hughes
leslie_alistair at hotmail.com
Fri Dec 21 05:00:31 CST 2018
Hi Piotr,
On 21/12/18 9:41 pm, Piotr Caban wrote:
> buf->dstflag = (GetTimeZoneInformation(&tzinfo) == TIME_ZONE_ID_DAYLIGHT ? 1 : 0);
> + time /= TICKSPERSEC * 60;
> + if(time != cache_timestamp)
> + {
> + cache_dstflag = GetTimeZoneInformation(&tzinfo) == TIME_ZONE_ID_DAYLIGHT ? 1 : 0;
> + cache_timestamp = time;
> + }
> + buf->dstflag = cache_dstflag;
You could use the function kernel32.GetDaylightFlag, which wouldn't
require the caching.
Alistair.
More information about the wine-devel
mailing list