Francois Gouget : ntdll: Return the UI language id in uppercase.

Alexandre Julliard julliard at winehq.org
Wed Mar 23 17:03:55 CDT 2022


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

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Wed Mar 23 16:54:22 2022 +0100

ntdll: Return the UI language id in uppercase.

This fixes a failure in kernel32:locale.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ntdll/locale.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/ntdll/locale.c b/dlls/ntdll/locale.c
index 74c395cbd85..b6cf2ec0739 100644
--- a/dlls/ntdll/locale.c
+++ b/dlls/ntdll/locale.c
@@ -627,7 +627,7 @@ static NTSTATUS get_dummy_preferred_ui_language( DWORD flags, LANGID lang, ULONG
 
     FIXME("(0x%x %p %p %p) returning a dummy value (current locale)\n", flags, count, buffer, size);
 
-    if (flags & MUI_LANGUAGE_ID) swprintf( name, ARRAY_SIZE(name), L"%04lx", lang );
+    if (flags & MUI_LANGUAGE_ID) swprintf( name, ARRAY_SIZE(name), L"%04lX", lang );
     else
     {
         UNICODE_STRING str;




More information about the wine-cvs mailing list