From 66718269a2cfc05703e8ecfbc95f76f3c6b22161 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Tue, 26 Apr 2016 15:53:00 +0000 Subject: IEView: fix localtime() call git-svn-id: http://svn.miranda-ng.org/main/trunk@16768 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/IEView/src/HTMLBuilder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/IEView/src') diff --git a/plugins/IEView/src/HTMLBuilder.cpp b/plugins/IEView/src/HTMLBuilder.cpp index 9001a14640..272b08e891 100644 --- a/plugins/IEView/src/HTMLBuilder.cpp +++ b/plugins/IEView/src/HTMLBuilder.cpp @@ -175,8 +175,8 @@ void HTMLBuilder::setLastEventTime(DWORD t) bool HTMLBuilder::isSameDate(time_t time1, time_t time2) { - tm *tm_t1 = localtime(&time1), *tm_t2 = localtime(&time2); - return tm_t1->tm_year == tm_t2->tm_year && tm_t1->tm_mon == tm_t2->tm_mon && tm_t1->tm_mday == tm_t2->tm_mday; + tm tm_t1 = *localtime(&time1), tm_t2 = *localtime(&time2); + return tm_t1.tm_year == tm_t2.tm_year && tm_t1.tm_mon == tm_t2.tm_mon && tm_t1.tm_mday == tm_t2.tm_mday; } -- cgit v1.2.3