mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[FONT][WIN32SS] Hold the freetype lock while accessing freetype data
This commit is contained in:
parent
2e44e5ce54
commit
971c657b80
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue