Commit b3e0d8db authored by Alexandre Julliard's avatar Alexandre Julliard

kernelbase: Really skip alternate sorts in EnumUILanguagesW().

parent b46cb034
......@@ -3820,8 +3820,7 @@ BOOL WINAPI DECLSPEC_HOTPATCH Internal_EnumUILanguages( UILANGUAGE_ENUMPROCW pro
if (!lcnames_index[i].name) continue; /* skip invariant locale */
if (lcnames_index[i].id & 0x80000000) continue; /* skip aliases */
if (!get_locale_data( lcnames_index[i].idx )->inotneutral) continue; /* skip neutral locales */
if (!SORTIDFROMLCID( lcnames_index[i].id ) != !(flags & LCID_ALTERNATE_SORTS))
continue; /* skip alternate sorts */
if (SORTIDFROMLCID( lcnames_index[i].id )) continue; /* skip alternate sorts */
if (flags & MUI_LANGUAGE_NAME)
{
const WCHAR *str = locale_strings + lcnames_index[i].name;
......
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