Author: mjansen
Date: Sun Jun 4 14:03:25 2017
New Revision: 74906
URL:
http://svn.reactos.org/svn/reactos?rev=74906&view=rev
Log:
[WIN32SS] Prevent accessing an unininitialized pointer when loading an invalid font.
CORE-13364
Modified:
trunk/reactos/win32ss/gdi/ntgdi/freetype.c
Modified: trunk/reactos/win32ss/gdi/ntgdi/freetype.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/freetype…
==============================================================================
--- trunk/reactos/win32ss/gdi/ntgdi/freetype.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/ntgdi/freetype.c [iso-8859-1] Sun Jun 4 14:03:25 2017
@@ -814,7 +814,7 @@
IntUnLockFreeType;
- if (FT_IS_SFNT(Face))
+ if (!Error && FT_IS_SFNT(Face))
pLoadFont->IsTrueType = TRUE;
if (Error || SharedFace == NULL)