dwrite: Use correct glyph array offset for alternate substitution table output.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2020-06-05 16:52:28 +03:00 committed by Alexandre Julliard
parent e89aa70555
commit 384067bda6
1 changed files with 1 additions and 1 deletions

View File

@ -4916,7 +4916,7 @@ static BOOL opentype_layout_apply_gsub_alt_substitution(struct scriptshaping_con
if (alt_index > count || !alt_index) if (alt_index > count || !alt_index)
return FALSE; return FALSE;
glyph = table_read_be_word(gsub, subtable_offset + offset + sizeof(count) + (alt_index - 1) * sizeof(glyph)); glyph = table_read_be_word(gsub, subtable_offset + offset + 2 + (alt_index - 1) * sizeof(glyph));
} }
else else
{ {