mirror of
https://github.com/reactos/reactos.git
synced 2024-07-01 02:10:07 +00:00
[WIN32SS] Only access a font face if it was actually loaded
This commit is contained in:
parent
ce2f52d054
commit
35dc022e14
|
@ -1154,8 +1154,11 @@ IntGdiLoadFontsFromMemory(PGDI_LOAD_FONT pLoadFont)
|
|||
pLoadFont->Memory->BufferSize,
|
||||
-1,
|
||||
&Face);
|
||||
FaceCount = Face->num_faces;
|
||||
FT_Done_Face(Face);
|
||||
if (!Error)
|
||||
{
|
||||
FaceCount = Face->num_faces;
|
||||
FT_Done_Face(Face);
|
||||
}
|
||||
IntUnLockFreeType();
|
||||
|
||||
if (Error)
|
||||
|
|
Loading…
Reference in a new issue