Nikolay Sivov : dwrite/opentype: Fix GPOS PairSet array offset.

Alexandre Julliard julliard at winehq.org
Thu May 19 16:15:13 CDT 2022


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Thu May 19 20:21:11 2022 +0300

dwrite/opentype: Fix GPOS PairSet array offset.

Passed offset already includes subtable offset.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/dwrite/opentype.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/dwrite/opentype.c b/dlls/dwrite/opentype.c
index 50e83769715..8e4bd7a62dc 100644
--- a/dlls/dwrite/opentype.c
+++ b/dlls/dwrite/opentype.c
@@ -4025,7 +4025,7 @@ static BOOL opentype_layout_apply_gpos_pair_adjustment(struct scriptshaping_cont
                 value_len2 * sizeof(WORD);
 
         pairset_offset = subtable_offset + GET_BE_WORD(format1->pairsets[coverage_index]);
-        pairset = table_read_ensure(table, subtable_offset + pairset_offset, pairvalue_len * pairvalue_count);
+        pairset = table_read_ensure(table, pairset_offset, pairvalue_len * pairvalue_count);
         if (!pairset)
             return FALSE;
 




More information about the wine-cvs mailing list