t2embed: Fix TTIsEmbeddingEnabled() to properly use otmpFaceName metrics field.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c61d8c2af1
commit
d01ab5ee4b
|
@ -171,7 +171,7 @@ LONG WINAPI TTIsEmbeddingEnabled(HDC hDC, BOOL *enabled)
|
||||||
return E_NOFREEMEMORY;
|
return E_NOFREEMEMORY;
|
||||||
|
|
||||||
GetOutlineTextMetricsA(hDC, len, otm);
|
GetOutlineTextMetricsA(hDC, len, otm);
|
||||||
ret = TTIsEmbeddingEnabledForFacename(otm->otmpFaceName, enabled);
|
ret = TTIsEmbeddingEnabledForFacename((LPCSTR)otm + (ULONG_PTR)otm->otmpFaceName, enabled);
|
||||||
HeapFree(GetProcessHeap(), 0, otm);
|
HeapFree(GetProcessHeap(), 0, otm);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue