mirror of
https://github.com/reactos/reactos.git
synced 2024-06-29 01:12:06 +00:00
[FONT][WIN32SS] Hold the freetype lock while accessing freetype data
This commit is contained in:
parent
2e44e5ce54
commit
971c657b80
|
@ -6798,8 +6798,12 @@ NtGdiGetGlyphIndicesW(
|
||||||
FT_Face Face = FontGDI->SharedFace->Face;
|
FT_Face Face = FontGDI->SharedFace->Face;
|
||||||
if (FT_IS_SFNT(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);
|
DefChar = (pOS2->usDefaultChar ? get_glyph_index(Face, pOS2->usDefaultChar) : 0);
|
||||||
|
IntUnLockFreeType();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue