dwrite/opentype: Fix GPOS PairSet array offset.

Passed offset already includes subtable offset.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2022-05-19 20:21:11 +03:00 committed by Alexandre Julliard
parent f6d184fe88
commit 295599e2c2
1 changed files with 1 additions and 1 deletions

View File

@ -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;