[PATCH] kernelbase: Set user_lcid to the user locale, not the system locale.
Zebediah Figura
zfigura at codeweavers.com
Tue Apr 12 16:11:01 CDT 2022
Fixes: fffbe3fcaef9c2b0e3814305b212a95188c1b0c2
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
dlls/kernelbase/locale.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/kernelbase/locale.c b/dlls/kernelbase/locale.c
index 358aa8c123c..95d7d77ecd7 100644
--- a/dlls/kernelbase/locale.c
+++ b/dlls/kernelbase/locale.c
@@ -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) ))
--
2.34.1
More information about the wine-devel
mailing list