From 0925006822412ea8a9f235b76acfdc89b3c0de35 Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Thu, 27 Apr 2017 17:19:49 +0200 Subject: [PATCH] dwrite: Don't fail in opentype_get_font_strings_from_id if any of font strings got decoded. Signed-off-by: Piotr Caban Signed-off-by: Nikolay Sivov Signed-off-by: Alexandre Julliard --- 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 165172922ba..5f2de239ef4 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) {