mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 00:40:26 +08:00
[WIN32SS] Only access a font face if it was actually loaded
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user