Gnucash on Windows will not start.

in the TimeZoneProvider function load_windows_classic_tz make_pair
should of used max_year as the first parameter.
This commit is contained in:
Robert Fewell 2016-05-05 16:19:11 +01:00
parent c739f4fae4
commit e81494756e

View File

@ -227,7 +227,7 @@ TimeZoneProvider::load_windows_classic_tz (HKEY key, time_zone_names names)
(LPBYTE) &regtzi, &size) == ERROR_SUCCESS)
{
zone_vector.push_back(
std::make_pair(0, zone_from_regtzi (regtzi, names)));
std::make_pair(max_year, zone_from_regtzi (regtzi, names)));
}
}
catch (std::bad_alloc)