Alexandre Julliard : kernelbase: Really skip alternate sorts in EnumUILanguagesW().
Alexandre Julliard
julliard at winehq.org
Tue Apr 26 16:25:26 CDT 2022
Module: wine
Branch: master
Commit: b3e0d8db5df198476e46094e30b5cee797e493d7
URL: https://source.winehq.org/git/wine.git/?a=commit;h=b3e0d8db5df198476e46094e30b5cee797e493d7
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Apr 26 18:38:27 2022 +0200
kernelbase: Really skip alternate sorts in EnumUILanguagesW().
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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;
More information about the wine-cvs
mailing list