[WIN32SS][FONT] Add ASSERT_FREETYPE_LOCK_HELD(); in FillTMEx (#1005)
authorKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Fri, 2 Nov 2018 09:53:50 +0000 (18:53 +0900)
committerGitHub <noreply@github.com>
Fri, 2 Nov 2018 09:53:50 +0000 (18:53 +0900)
Add a assertion for locking, in FillTMEx function of freetype.c. CORE-15166

win32ss/gdi/ntgdi/freetype.c

index 693056b..f1dee70 100644 (file)
@@ -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;