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

Alexandre Julliard julliard at winehq.org
Wed Apr 13 15:14:44 CDT 2022


Module: wine
Branch: master
Commit: 351fa352f679c4d07581a6f9748c283845f8100f
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=351fa352f679c4d07581a6f9748c283845f8100f

Author: Zebediah Figura <zfigura at codeweavers.com>
Date:   Tue Apr 12 16:11:01 2022 -0500

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

Fixes: fffbe3fcaef9c2b0e3814305b212a95188c1b0c2
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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) ))




More information about the wine-cvs mailing list