1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-23 15:52:55 +01:00

Fix #7765: Crash when opening ride list window on Windows Vista (#7781)

It has been reported that Windows Vista crashes in LCMapStringEx when
using LOCALE_NAME_INVARIANT even though it is documented as supported.

As a counter measure, use LOCALE_NAME_USER_DEFAULT for the time being.
This commit is contained in:
Ted John
2018-07-14 08:52:12 +01:00
committed by GitHub
parent 54c0eff6a6
commit f728a5074a
2 changed files with 3 additions and 2 deletions

View File

@@ -16,6 +16,7 @@
- Fix: [#7711] Inverted Hairpin Coaster allows building invisible banked pieces.
- Fix: [#7734] Title sequence not included in macOS builds as of 0.2.0 release.
- Fix: [#7756] Steam RCT2 path not correctly checked on macOS and Linux.
- Fix: [#7765] Crash when opening ride list window on Windows Vista.
0.2.0 (2018-06-10)
------------------------------------------------------------------------

View File

@@ -703,7 +703,7 @@ namespace String
// Measure how long the destination needs to be
auto requiredSize = LCMapStringEx(
LOCALE_NAME_INVARIANT,
LOCALE_NAME_USER_DEFAULT,
LCMAP_UPPERCASE | LCMAP_LINGUISTIC_CASING,
srcW.c_str(),
(int)srcW.length(),
@@ -718,7 +718,7 @@ namespace String
// Transform the string
auto result = LCMapStringEx(
LOCALE_NAME_INVARIANT,
LOCALE_NAME_USER_DEFAULT,
LCMAP_UPPERCASE | LCMAP_LINGUISTIC_CASING,
srcW.c_str(),
(int)srcW.length(),