Fix wxUILocale::GetPreferredUILanguages() under Windows < 10
Return the default locale name under old Windows versions instead of always returning an empty vector and logging a spurious error. Closes #23416.
This commit is contained in:
parent
ff6201fe1d
commit
a242283456
1 changed files with 1 additions and 1 deletions
|
|
@ -271,7 +271,7 @@ public:
|
|||
{
|
||||
// Use the default user locale for Windows 7 resp Windows 8.x and below
|
||||
wchar_t buf[LOCALE_NAME_MAX_LENGTH];
|
||||
if (!::GetUserDefaultLocaleName(buf, LOCALE_NAME_MAX_LENGTH))
|
||||
if (::GetUserDefaultLocaleName(buf, LOCALE_NAME_MAX_LENGTH))
|
||||
{
|
||||
preferred.push_back(buf);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue