Module: wine Branch: master Commit: 0925006822412ea8a9f235b76acfdc89b3c0de35 URL: http://source.winehq.org/git/wine.git/?a=commit;h=0925006822412ea8a9f235b76a...
Author: Piotr Caban piotr@codeweavers.com Date: Thu Apr 27 17:19:49 2017 +0200
dwrite: Don't fail in opentype_get_font_strings_from_id if any of font strings got decoded.
Signed-off-by: Piotr Caban piotr@codeweavers.com Signed-off-by: Nikolay Sivov nsivov@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/dwrite/opentype.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dlls/dwrite/opentype.c b/dlls/dwrite/opentype.c index 1651729..5f2de23 100644 --- a/dlls/dwrite/opentype.c +++ b/dlls/dwrite/opentype.c @@ -1586,8 +1586,10 @@ static HRESULT opentype_get_font_strings_from_id(const void *table_data, enum OP continue; }
- if (!(exists = opentype_decode_namerecord(header, storage_area, i, *strings))) + if (!opentype_decode_namerecord(header, storage_area, i, *strings)) continue; + + exists = TRUE; }
if (!exists) {