Module: wine Branch: master Commit: 849ee1c2bb56e027787fb651808ffe74f27dddbf URL: http://source.winehq.org/git/wine.git/?a=commit;h=849ee1c2bb56e027787fb65180...
Author: Alexandre Julliard julliard@winehq.org Date: Thu Mar 8 21:06:41 2007 +0100
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 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/kernel32/time.c b/dlls/kernel32/time.c index ba606bb..08002af 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