projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[WIN32SS] Only access a font face if it was actually loaded
[reactos.git]
/
win32ss
/
gdi
/
ntgdi
/
freetype.c
diff --git
a/win32ss/gdi/ntgdi/freetype.c
b/win32ss/gdi/ntgdi/freetype.c
index
d31178d
..
e953b52
100644
(file)
--- a/
win32ss/gdi/ntgdi/freetype.c
+++ b/
win32ss/gdi/ntgdi/freetype.c
@@
-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)