mirror of
https://github.com/reactos/reactos.git
synced 2024-12-01 23:43:32 +08:00
[FONT][WIN32SS] Hold the freetype lock while accessing freetype data
This commit is contained in:
parent
436d8d962a
commit
1d1b7f46fc
@ -4865,6 +4865,9 @@ IntFontType(PFONTGDI Font)
|
||||
FT_ULong tmp_size = 0;
|
||||
FT_Face Face = Font->SharedFace->Face;
|
||||
|
||||
ASSERT_FREETYPE_LOCK_NOT_HELD();
|
||||
IntLockFreeType();
|
||||
|
||||
if (FT_HAS_MULTIPLE_MASTERS(Face))
|
||||
Font->FontObj.flFontType |= FO_MULTIPLEMASTER;
|
||||
if (FT_HAS_VERTICAL(Face))
|
||||
@ -4886,6 +4889,8 @@ IntFontType(PFONTGDI Font)
|
||||
{
|
||||
Font->FontObj.flFontType |= (FO_CFF|FO_POSTSCRIPT);
|
||||
}
|
||||
|
||||
IntUnLockFreeType();
|
||||
}
|
||||
|
||||
static BOOL
|
||||
|
Loading…
Reference in New Issue
Block a user