Commit 89c06a84 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Michael Stefaniuc

t2embed: Fix TTIsEmbeddingEnabled() to properly use otmpFaceName metrics field.

Signed-off-by: 's avatarNikolay Sivov <nsivov@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org> (cherry picked from commit d01ab5ee) Signed-off-by: 's avatarMichael Stefaniuc <mstefani@winehq.org>
parent e83b4681
......@@ -166,7 +166,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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment