From b3e0d8db5df198476e46094e30b5cee797e493d7 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 26 Apr 2022 18:38:27 +0200 Subject: [PATCH] kernelbase: Really skip alternate sorts in EnumUILanguagesW(). Signed-off-by: Alexandre Julliard --- dlls/kernelbase/locale.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/kernelbase/locale.c b/dlls/kernelbase/locale.c index d046cefd749..bb3c71dab90 100644 --- a/dlls/kernelbase/locale.c +++ b/dlls/kernelbase/locale.c @@ -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;