Piotr Caban : msvcrt: Use GetDaylightFlag() to set dstflag value in _ftime64.
Alexandre Julliard
julliard at winehq.org
Fri Dec 21 11:44:10 CST 2018
Module: wine
Branch: master
Commit: 2efc73b96811330be34ef81ff9e35054bcbb5679
URL: https://source.winehq.org/git/wine.git/?a=commit;h=2efc73b96811330be34ef81ff9e35054bcbb5679
Author: Piotr Caban <piotr at codeweavers.com>
Date: Fri Dec 21 12:44:39 2018 +0100
msvcrt: Use GetDaylightFlag() to set dstflag value in _ftime64.
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/msvcrt/time.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/msvcrt/time.c b/dlls/msvcrt/time.c
index 1fee0a9..14f4ba0 100644
--- a/dlls/msvcrt/time.c
+++ b/dlls/msvcrt/time.c
@@ -36,6 +36,8 @@
WINE_DEFAULT_DEBUG_CHANNEL(msvcrt);
+BOOL WINAPI GetDaylightFlag(void);
+
static const int MonthLengths[2][12] =
{
{ 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 },
@@ -765,7 +767,6 @@ double CDECL MSVCRT_difftime(MSVCRT___time32_t time1, MSVCRT___time32_t time2)
*/
void CDECL MSVCRT__ftime64(struct MSVCRT___timeb64 *buf)
{
- TIME_ZONE_INFORMATION tzinfo;
FILETIME ft;
ULONGLONG time;
@@ -778,7 +779,7 @@ void CDECL MSVCRT__ftime64(struct MSVCRT___timeb64 *buf)
buf->time = time / TICKSPERSEC - SECS_1601_TO_1970;
buf->millitm = (time % TICKSPERSEC) / TICKSPERMSEC;
buf->timezone = MSVCRT___timezone / 60;
- buf->dstflag = GetTimeZoneInformation(&tzinfo) == TIME_ZONE_ID_DAYLIGHT;
+ buf->dstflag = GetDaylightFlag();
}
/*********************************************************************
More information about the wine-cvs
mailing list