[FONT][WIN32SS] Hold the freetype lock while accessing freetype data

This commit is contained in:
Mark Jansen 2018-12-29 19:46:14 +01:00
parent 2e44e5ce54
commit 971c657b80
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B

View file

@ -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
{