https://git.reactos.org/?p=reactos.git;a=commitdiff;h=5d26cf5e2afa9c92f28dc…
commit 5d26cf5e2afa9c92f28dc999569b2670ac0e79c5
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Fri Nov 2 16:29:18 2018 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Fri Nov 2 16:29:18 2018 +0900
[WIN32SS][FONT] Move IntUnLockFreeType(); in ftGdiGetTextMetricsW (#1002)
Adjust timing of FreeType unlocking in ftGdiGetTextMetricsW function of
"freetype.c". JIRA issue: N/A
---
win32ss/gdi/ntgdi/freetype.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/win32ss/gdi/ntgdi/freetype.c b/win32ss/gdi/ntgdi/freetype.c
index dfdb3768f6..693056b9a2 100644
--- a/win32ss/gdi/ntgdi/freetype.c
+++ b/win32ss/gdi/ntgdi/freetype.c
@@ -4326,8 +4326,6 @@ ftGdiGetTextMetricsW(
Error = FT_Get_WinFNT_Header(Face, &Win);
- IntUnLockFreeType();
-
if (NT_SUCCESS(Status))
{
FillTM(&ptmwi->TextMetric, FontGDI, pOS2, pHori, !Error ? &Win
: 0);
@@ -4335,6 +4333,8 @@ ftGdiGetTextMetricsW(
/* FIXME: Fill Diff member */
RtlZeroMemory(&ptmwi->Diff, sizeof(ptmwi->Diff));
}
+
+ IntUnLockFreeType();
}
TEXTOBJ_UnlockText(TextObj);
}