Piotr Caban : dwrite: Don' t fail in opentype_get_font_strings_from_id if any of font strings got decoded.

Alexandre Julliard julliard at winehq.org
Thu Apr 27 15:49:10 CDT 2017


Module: wine
Branch: master
Commit: 0925006822412ea8a9f235b76acfdc89b3c0de35
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=0925006822412ea8a9f235b76acfdc89b3c0de35

Author: Piotr Caban <piotr at 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 at codeweavers.com>
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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) {




More information about the wine-cvs mailing list