shell32: Set tm_isdst before calling mktime.
Vincent Povirk
madewokherd at gmail.com
Tue Jun 17 15:55:07 CDT 2014
For bug 28824.
-------------- next part --------------
From 200b7df44f4c5ac5e956e9cb3a2cfeb18bf79557 Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Wed, 28 May 2014 10:20:42 -0500
Subject: [PATCH] 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);
--
1.8.3.2
More information about the wine-patches
mailing list