projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
ce2f52d
)
[WIN32SS] Only access a font face if it was actually loaded
author
Mark Jansen
<mark.jansen@reactos.org>
Sat, 3 Aug 2019 22:12:34 +0000
(
00:12
+0200)
committer
Mark Jansen
<mark.jansen@reactos.org>
Sat, 3 Aug 2019 22:41:12 +0000
(
00:41
+0200)
win32ss/gdi/ntgdi/freetype.c
patch
|
blob
|
history
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)