From ddba217109b84ef74c6a8ca29a1724bb5612572f Mon Sep 17 00:00:00 2001 From: est31 Date: Sun, 7 Jun 2015 16:10:33 +0200 Subject: [PATCH] Complete fix for windows compilability Thanks @volzhs for testing :) --- platform/windows/os_windows.cpp | 3 ++- platform/winrt/os_winrt.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index fea20828224..ec9e17c4f01 100644 --- a/platform/windows/os_windows.cpp +++ b/platform/windows/os_windows.cpp @@ -1863,9 +1863,10 @@ OS::Time OS_Windows::get_time(bool utc) const { OS::TimeZoneInfo OS_Windows::get_time_zone_info() const { TIME_ZONE_INFORMATION info; bool daylight = false; - if (GetTimeZoneInformation(info) == TIME_ZONE_ID_DAYLIGHT) + if (GetTimeZoneInformation(&info) == TIME_ZONE_ID_DAYLIGHT) daylight = true; + TimeZoneInfo ret; if (daylight) { ret.name = info.DaylightName; } else { diff --git a/platform/winrt/os_winrt.cpp b/platform/winrt/os_winrt.cpp index ab5953f9805..3e06d9d59b9 100644 --- a/platform/winrt/os_winrt.cpp +++ b/platform/winrt/os_winrt.cpp @@ -476,9 +476,10 @@ OS::Time OSWinrt::get_time(bool utc) const { OS::TimeZoneInfo OS_Windows::get_time_zone_info() const { TIME_ZONE_INFORMATION info; bool daylight = false; - if (GetTimeZoneInformation(info) == TIME_ZONE_ID_DAYLIGHT) + if (GetTimeZoneInformation(&info) == TIME_ZONE_ID_DAYLIGHT) daylight = true; + TimeZoneInfo ret; if (daylight) { ret.name = info.DaylightName; } else {