kernelbase: Set user_lcid to the user locale, not the system locale.

Fixes: fffbe3fcae
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2022-04-12 16:11:01 -05:00 committed by Alexandre Julliard
parent ae9266992a
commit 351fa352f6
1 changed files with 1 additions and 1 deletions

View File

@ -1767,7 +1767,7 @@ void init_locale( HMODULE module )
load_locale_nls();
NtQueryDefaultLocale( FALSE, &system_lcid );
NtQueryDefaultLocale( FALSE, &user_lcid );
NtQueryDefaultLocale( TRUE, &user_lcid );
if (!(system_locale = NlsValidateLocale( &system_lcid, 0 )))
{
if (GetEnvironmentVariableW( L"WINELOCALE", bufferW, ARRAY_SIZE(bufferW) ))