From a83eea9b44f8c6a8658101189e339169facefe7c Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Wed, 23 Mar 2022 16:54:22 +0100 Subject: [PATCH] ntdll: Return the UI language id in uppercase. This fixes a failure in kernel32:locale. Signed-off-by: Francois Gouget Signed-off-by: Alexandre Julliard --- 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;