[PATCH] ntdll: Return the UI language id in uppercase.

Francois Gouget fgouget at codeweavers.com
Wed Mar 23 10:54:22 CDT 2022


This fixes a failure in kernel32:locale.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
https://test.winehq.org/data/patterns.html#kernel32:locale

The test was introduced in commit 68dc3d411674. At the time this lead to 
tweaking the nls ILANGUAGE values: 
https://www.winehq.org/pipermail/wine-devel/2021-December/202660.html
---
 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 158f068b03d..e24b4d8188f 100644
--- a/dlls/ntdll/locale.c
+++ b/dlls/ntdll/locale.c
@@ -605,7 +605,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;
-- 
2.30.2



More information about the wine-devel mailing list