From 849ee1c2bb56e027787fb651808ffe74f27dddbf Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 8 Mar 2007 21:06:41 +0100 Subject: [PATCH] kernel32: Fixed DosDateTimeToFileTime behavior when timegm() is missing. The tm_isdst field needs to be initialized for mktime to do the right thing. --- dlls/kernel32/time.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/kernel32/time.c b/dlls/kernel32/time.c index ba606bbdf2f..08002afb132 100644 --- a/dlls/kernel32/time.c +++ b/dlls/kernel32/time.c @@ -972,6 +972,7 @@ BOOL WINAPI DosDateTimeToFileTime( WORD fatdate, WORD fattime, LPFILETIME ft) newtm.tm_mday = (fatdate & 0x1f); newtm.tm_mon = ((fatdate >> 5) & 0x0f) - 1; newtm.tm_year = (fatdate >> 9) + 80; + newtm.tm_isdst = -1; #ifdef HAVE_TIMEGM RtlSecondsSince1970ToTime( timegm(&newtm), (LARGE_INTEGER *)ft ); #else