Commit 849ee1c2 authored by Alexandre Julliard's avatar Alexandre Julliard

kernel32: Fixed DosDateTimeToFileTime behavior when timegm() is missing.

The tm_isdst field needs to be initialized for mktime to do the right thing.
parent 7e2228f1
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment