projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
436d8d9
)
[FONT][WIN32SS] Hold the freetype lock while accessing freetype data
author
Mark Jansen
<mark.jansen@reactos.org>
Sat, 29 Dec 2018 18:45:21 +0000
(19:45 +0100)
committer
Mark Jansen
<mark.jansen@reactos.org>
Sat, 29 Dec 2018 18:47:00 +0000
(19:47 +0100)
win32ss/gdi/ntgdi/freetype.c
patch
|
blob
|
history
diff --git
a/win32ss/gdi/ntgdi/freetype.c
b/win32ss/gdi/ntgdi/freetype.c
index
7e7e132
..
58a81dc
100644
(file)
--- a/
win32ss/gdi/ntgdi/freetype.c
+++ b/
win32ss/gdi/ntgdi/freetype.c
@@
-4865,6
+4865,9
@@
IntFontType(PFONTGDI Font)
FT_ULong tmp_size = 0;
FT_Face Face = Font->SharedFace->Face;
+ ASSERT_FREETYPE_LOCK_NOT_HELD();
+ IntLockFreeType();
+
if (FT_HAS_MULTIPLE_MASTERS(Face))
Font->FontObj.flFontType |= FO_MULTIPLEMASTER;
if (FT_HAS_VERTICAL(Face))
@@
-4886,6
+4889,8
@@
IntFontType(PFONTGDI Font)
{
Font->FontObj.flFontType |= (FO_CFF|FO_POSTSCRIPT);
}
+
+ IntUnLockFreeType();
}
static BOOL