Sebastian Lackner : dwrite: Avoid dereferencing NULL pointer for fonts without VDMX.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jul 13 09:30:03 CDT 2015


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

Author: Sebastian Lackner <sebastian at fds-team.de>
Date:   Sun Jul 12 03:46:20 2015 +0200

dwrite: Avoid dereferencing NULL pointer for fonts without VDMX.

---

 dlls/dwrite/opentype.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/dwrite/opentype.c b/dlls/dwrite/opentype.c
index 63e1b74..8d90c04 100644
--- a/dlls/dwrite/opentype.c
+++ b/dlls/dwrite/opentype.c
@@ -1347,7 +1347,7 @@ static const struct VDMX_group *find_vdmx_group(const struct VDMX_Header *hdr)
 BOOL opentype_get_vdmx_size(const void *data, INT emsize, UINT16 *ascent, UINT16 *descent)
 {
     const struct VDMX_Header *hdr = (const struct VDMX_Header*)data;
-    const struct VDMX_group *group = find_vdmx_group(hdr);
+    const struct VDMX_group *group;
     const struct VDMX_vTable *tables;
     WORD recs, i;
 




More information about the wine-cvs mailing list