[WIN32SS] Prevent accessing an unininitialized pointer when loading an invalid font...
authorMark Jansen <mark.jansen@reactos.org>
Sun, 4 Jun 2017 14:03:25 +0000 (14:03 +0000)
committerMark Jansen <mark.jansen@reactos.org>
Sun, 4 Jun 2017 14:03:25 +0000 (14:03 +0000)
svn path=/trunk/; revision=74906

reactos/win32ss/gdi/ntgdi/freetype.c

index f76be2e..6c0b83e 100644 (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)