dwrite: Avoid dereferencing NULL pointer for fonts without VDMX.

Sebastian Lackner sebastian at fds-team.de
Sat Jul 11 20:46:20 CDT 2015


Fixes a regression introduced by 849bb99b769c29a8eb98ca0b32b87bbda3d45865,
Steam was crashing here with dwrite enabled when using a specific Arial replacement font.

---
 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;
 
-- 
2.4.5



More information about the wine-patches mailing list