diff options
author | est31 <MTest31@outlook.com> | 2015-06-07 16:10:33 +0200 |
---|---|---|
committer | est31 <MTest31@outlook.com> | 2015-06-07 16:12:03 +0200 |
commit | ddba217109b84ef74c6a8ca29a1724bb5612572f (patch) | |
tree | 51c31c35789f7e39526ff18b4c655b4d093859da /platform/windows/os_windows.cpp | |
parent | 64704ecbc50c20d58bc8270a4af63e310a72b69f (diff) |
Complete fix for windows compilability
Thanks @volzhs for testing :)
Diffstat (limited to 'platform/windows/os_windows.cpp')
-rw-r--r-- | platform/windows/os_windows.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index fea2082822..ec9e17c4f0 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 { |