From 1d23255e20dcda568828a26b689d14985832a4f1 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 18 Mar 2022 14:46:46 +0100 Subject: [PATCH] mlang: Skip Unicode codepages in GetCharCodePages(). Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50351 Signed-off-by: Alexandre Julliard --- dlls/mlang/mlang.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/mlang/mlang.c b/dlls/mlang/mlang.c index a34c0749ecf..fc5e227721e 100644 --- a/dlls/mlang/mlang.c +++ b/dlls/mlang/mlang.c @@ -3312,7 +3312,7 @@ static HRESULT WINAPI fnIMLangFontLink2_GetCharCodePages( IMLangFontLink2* iface *ret_codepages = 0; - for (i = 0; i < ARRAY_SIZE(mlang_data); i++) + for (i = 0; i < ARRAY_SIZE(mlang_data) - 1 /* skip unicode codepages */; i++) { BOOL used_dc; CHAR buf;