[WIN32SS] Prevent accessing an unininitialized pointer when loading an invalid font. CORE-13364

svn path=/trunk/; revision=74906
This commit is contained in:
Mark Jansen 2017-06-04 14:03:25 +00:00
parent 09cb26ed2e
commit d8b7427d6b

View file

@ -814,7 +814,7 @@ IntGdiLoadFontsFromMemory(PGDI_LOAD_FONT pLoadFont,
IntUnLockFreeType;
if (FT_IS_SFNT(Face))
if (!Error && FT_IS_SFNT(Face))
pLoadFont->IsTrueType = TRUE;
if (Error || SharedFace == NULL)