Skip to content

Commit 5d26cf5

Browse files
authored
[WIN32SS][FONT] Move IntUnLockFreeType(); in ftGdiGetTextMetricsW (reactos#1002)
Adjust timing of FreeType unlocking in ftGdiGetTextMetricsW function of "freetype.c". JIRA issue: N/A
1 parent ce077bb commit 5d26cf5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

win32ss/gdi/ntgdi/freetype.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4326,15 +4326,15 @@ ftGdiGetTextMetricsW(
43264326

43274327
Error = FT_Get_WinFNT_Header(Face, &Win);
43284328

4329-
IntUnLockFreeType();
4330-
43314329
if (NT_SUCCESS(Status))
43324330
{
43334331
FillTM(&ptmwi->TextMetric, FontGDI, pOS2, pHori, !Error ? &Win : 0);
43344332

43354333
/* FIXME: Fill Diff member */
43364334
RtlZeroMemory(&ptmwi->Diff, sizeof(ptmwi->Diff));
43374335
}
4336+
4337+
IntUnLockFreeType();
43384338
}
43394339
TEXTOBJ_UnlockText(TextObj);
43404340
}

0 commit comments

Comments
 (0)