https://git.reactos.org/?p=reactos.git;a=commitdiff;h=08cfe38ec62b328c99b9e…
commit 08cfe38ec62b328c99b9ea275726445bf89fb149
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Fri Nov 2 18:53:50 2018 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Fri Nov 2 18:53:50 2018 +0900
[WIN32SS][FONT] Add ASSERT_FREETYPE_LOCK_HELD(); in FillTMEx (#1005)
Add a assertion for locking, in FillTMEx function of freetype.c. CORE-15166
---
win32ss/gdi/ntgdi/freetype.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/win32ss/gdi/ntgdi/freetype.c b/win32ss/gdi/ntgdi/freetype.c
index 693056b9a2..f1dee700b7 100644
--- a/win32ss/gdi/ntgdi/freetype.c
+++ b/win32ss/gdi/ntgdi/freetype.c
@@ -1722,6 +1722,8 @@ FillTMEx(TEXTMETRICW *TM, PFONTGDI FontGDI,
int Ascent, Descent;
FT_Face Face = FontGDI->SharedFace->Face;
+ ASSERT_FREETYPE_LOCK_HELD();
+
XScale = Face->size->metrics.x_scale;
YScale = Face->size->metrics.y_scale;