mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 13:37:12 +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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue