mirror of
https://github.com/reactos/reactos.git
synced 2024-10-04 16:36:11 +00:00
[WIN32SS] Prevent accessing an unininitialized pointer when loading an invalid font. CORE-13364
svn path=/trunk/; revision=74906
This commit is contained in:
parent
09cb26ed2e
commit
d8b7427d6b
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue