mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:42:57 +00:00
[WIN32SS] Only access a font face if it was actually loaded
This commit is contained in:
parent
ce2f52d054
commit
35dc022e14
1 changed files with 5 additions and 2 deletions
|
@ -1154,8 +1154,11 @@ IntGdiLoadFontsFromMemory(PGDI_LOAD_FONT pLoadFont)
|
||||||
pLoadFont->Memory->BufferSize,
|
pLoadFont->Memory->BufferSize,
|
||||||
-1,
|
-1,
|
||||||
&Face);
|
&Face);
|
||||||
FaceCount = Face->num_faces;
|
if (!Error)
|
||||||
FT_Done_Face(Face);
|
{
|
||||||
|
FaceCount = Face->num_faces;
|
||||||
|
FT_Done_Face(Face);
|
||||||
|
}
|
||||||
IntUnLockFreeType();
|
IntUnLockFreeType();
|
||||||
|
|
||||||
if (Error)
|
if (Error)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue