Serge Gautherie : mlang: Fix scripts values in fnIMLangFontLink2_GetScriptFontInfo().

Alexandre Julliard julliard at winehq.org
Thu Jul 16 19:01:20 CDT 2020


Module: wine
Branch: master
Commit: 2dc0758b5d0fe4ef49b7d0635299e5cb9e0360df
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=2dc0758b5d0fe4ef49b7d0635299e5cb9e0360df

Author: Serge Gautherie <winehq-git_serge_180711 at gautherie.fr>
Date:   Wed Jul 15 17:07:10 2020 +0200

mlang: Fix scripts values in fnIMLangFontLink2_GetScriptFontInfo().

Signed-off-by: Serge Gautherie <winehq-git_serge_180711 at gautherie.fr>
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 1b1aed370e..e3582cca2d 100644
--- a/dlls/mlang/mlang.c
+++ b/dlls/mlang/mlang.c
@@ -3565,7 +3565,7 @@ static HRESULT WINAPI fnIMLangFontLink2_GetScriptFontInfo(IMLangFontLink2* This,
             {
                 if (j >= *puiFonts) break;
 
-                pScriptFont[j].scripts = 1 << mlang_data[i].sid;
+                pScriptFont[j].scripts = (SCRIPT_IDS)1 << mlang_data[i].sid;
                 if (dwFlags == SCRIPTCONTF_FIXED_FONT)
                 {
                     MultiByteToWideChar(CP_ACP, 0, mlang_data[i].fixed_font, -1,




More information about the wine-cvs mailing list