Vincent Povirk : shell32: Set tm_isdst before calling mktime.

Alexandre Julliard julliard at winehq.org
Wed Jun 18 14:31:41 CDT 2014


Module: wine
Branch: master
Commit: fa8d59c30b250ac1d4814268e2b7956a11d8f8b9
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=fa8d59c30b250ac1d4814268e2b7956a11d8f8b9

Author: Vincent Povirk <vincent at codeweavers.com>
Date:   Wed May 28 10:20:42 2014 -0500

shell32: Set tm_isdst before calling mktime.

---

 dlls/shell32/trash.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/shell32/trash.c b/dlls/shell32/trash.c
index 043ae5b..3ca6e4e 100644
--- a/dlls/shell32/trash.c
+++ b/dlls/shell32/trash.c
@@ -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);




More information about the wine-cvs mailing list