shell32: Set tm_isdst before calling mktime.

oldstable
Vincent Povirk 2014-05-28 10:20:42 -05:00 committed by Alexandre Julliard
parent 0b30276e2f
commit fa8d59c30b
1 changed files with 1 additions and 0 deletions

View File

@ -515,6 +515,7 @@ static HRESULT TRASH_GetDetails(const TRASH_BUCKET *bucket, LPCSTR filename, WIN
&del_time.tm_hour, &del_time.tm_min, &del_time.tm_sec);
del_time.tm_year -= 1900;
del_time.tm_mon--;
del_time.tm_isdst = -1;
del_secs = mktime(&del_time);
RtlSecondsSince1970ToTime(del_secs, (LARGE_INTEGER *)&data->ftLastAccessTime);