mirror of
https://github.com/reactos/reactos.git
synced 2024-07-01 02:10:07 +00:00
[FONT][WIN32SS] Hold the freetype lock while accessing freetype data
This commit is contained in:
parent
2fa400b521
commit
436d8d962a
|
@ -4142,10 +4142,9 @@ ftGdiGetTextCharsetInfo(
|
||||||
Face = FontGdi->SharedFace->Face;
|
Face = FontGdi->SharedFace->Face;
|
||||||
TEXTOBJ_UnlockText(TextObj);
|
TEXTOBJ_UnlockText(TextObj);
|
||||||
|
|
||||||
|
memset(&fs, 0, sizeof(FONTSIGNATURE));
|
||||||
IntLockFreeType();
|
IntLockFreeType();
|
||||||
pOS2 = FT_Get_Sfnt_Table(Face, ft_sfnt_os2);
|
pOS2 = FT_Get_Sfnt_Table(Face, ft_sfnt_os2);
|
||||||
IntUnLockFreeType();
|
|
||||||
memset(&fs, 0, sizeof(FONTSIGNATURE));
|
|
||||||
if (NULL != pOS2)
|
if (NULL != pOS2)
|
||||||
{
|
{
|
||||||
fs.fsCsb[0] = pOS2->ulCodePageRange1;
|
fs.fsCsb[0] = pOS2->ulCodePageRange1;
|
||||||
|
@ -4164,6 +4163,8 @@ ftGdiGetTextCharsetInfo(
|
||||||
fs.fsCsb[0] |= FS_SYMBOL;
|
fs.fsCsb[0] |= FS_SYMBOL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
pOS2 = NULL;
|
||||||
|
IntUnLockFreeType();
|
||||||
DPRINT("Csb 1=%x 0=%x\n", fs.fsCsb[1],fs.fsCsb[0]);
|
DPRINT("Csb 1=%x 0=%x\n", fs.fsCsb[1],fs.fsCsb[0]);
|
||||||
if (fs.fsCsb[0] == 0)
|
if (fs.fsCsb[0] == 0)
|
||||||
{ /* Let's see if we can find any interesting cmaps */
|
{ /* Let's see if we can find any interesting cmaps */
|
||||||
|
|
Loading…
Reference in a new issue