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;