Commit 29cbec5e authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

ntdll: Use system language as preferred, if user language is custom-unspecified.

parent beb9e113
......@@ -193,13 +193,16 @@ static NTSTATUS get_dummy_preferred_ui_language( DWORD flags, LANGID lang, ULONG
NTSTATUS status;
ULONG len;
FIXME("(0x%lx %p %p %p) returning a dummy value (current locale)\n", flags, count, buffer, size);
FIXME("(0x%lx %#x %p %p %p) returning a dummy value (current locale)\n", flags, lang, count, buffer, size);
if (flags & MUI_LANGUAGE_ID) swprintf( name, ARRAY_SIZE(name), L"%04lX", lang );
else
{
UNICODE_STRING str;
if (lang == LOCALE_CUSTOM_UNSPECIFIED)
NtQueryInstallUILanguage( &lang );
str.Buffer = name;
str.MaximumLength = sizeof(name);
status = RtlLcidToLocaleName( lang, &str, 0, FALSE );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment