Alexandre Julliard : mlang: Skip Unicode codepages in GetCharCodePages().
Alexandre Julliard
julliard at winehq.org
Fri Mar 18 16:39:53 CDT 2022
Module: wine
Branch: master
Commit: 1d23255e20dcda568828a26b689d14985832a4f1
URL: https://source.winehq.org/git/wine.git/?a=commit;h=1d23255e20dcda568828a26b689d14985832a4f1
Author: Alexandre Julliard <julliard at winehq.org>
Date: Fri Mar 18 14:46:46 2022 +0100
mlang: Skip Unicode codepages in GetCharCodePages().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50351
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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;
More information about the wine-cvs
mailing list