projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e44e5c
)
[FONT][WIN32SS] Hold the freetype lock while accessing freetype data
author
Mark Jansen
<mark.jansen@reactos.org>
Sat, 29 Dec 2018 18:46:14 +0000
(19:46 +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
08d164a
..
93abca4
100644
(file)
--- a/
win32ss/gdi/ntgdi/freetype.c
+++ b/
win32ss/gdi/ntgdi/freetype.c
@@
-6798,8
+6798,12
@@
NtGdiGetGlyphIndicesW(
FT_Face Face = FontGDI->SharedFace->Face;
if (FT_IS_SFNT(Face))
{
- TT_OS2 *pOS2 = FT_Get_Sfnt_Table(Face, ft_sfnt_os2);
+ TT_OS2 *pOS2;
+
+ IntLockFreeType();
+ pOS2 = FT_Get_Sfnt_Table(Face, ft_sfnt_os2);
DefChar = (pOS2->usDefaultChar ? get_glyph_index(Face, pOS2->usDefaultChar) : 0);
+ IntUnLockFreeType();
}
else
{