Merge pull request #2044 from est31/fix-win
Complete fix for windows compilability
This commit is contained in:
commit
798b55df30
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue