From d01ab5ee4b56c8284d0bd9ae9af9f257e041b54e Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Fri, 12 Aug 2016 01:45:19 +0300 Subject: [PATCH] t2embed: Fix TTIsEmbeddingEnabled() to properly use otmpFaceName metrics field. Signed-off-by: Nikolay Sivov Signed-off-by: Alexandre Julliard --- dlls/t2embed/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/t2embed/main.c b/dlls/t2embed/main.c index 48e20f5fbd3..de78b25e9ed 100644 --- a/dlls/t2embed/main.c +++ b/dlls/t2embed/main.c @@ -171,7 +171,7 @@ LONG WINAPI TTIsEmbeddingEnabled(HDC hDC, BOOL *enabled) return E_NOFREEMEMORY; GetOutlineTextMetricsA(hDC, len, otm); - ret = TTIsEmbeddingEnabledForFacename(otm->otmpFaceName, enabled); + ret = TTIsEmbeddingEnabledForFacename((LPCSTR)otm + (ULONG_PTR)otm->otmpFaceName, enabled); HeapFree(GetProcessHeap(), 0, otm); return ret; }