Module: wine Branch: master Commit: 9df16935c81fc76207ddb60a36f4ccbad2915c76 URL: http://source.winehq.org/git/wine.git/?a=commit;h=9df16935c81fc76207ddb60a36...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Fri Aug 12 01:45:20 2016 +0300
t2embed: Add some traces for fsType and exclusion list test results.
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/t2embed/main.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/dlls/t2embed/main.c b/dlls/t2embed/main.c index de78b25..766926f 100644 --- a/dlls/t2embed/main.c +++ b/dlls/t2embed/main.c @@ -75,6 +75,7 @@ LONG WINAPI TTEmbedFont(HDC hDC, ULONG ulFlags, ULONG ulCharSet, ULONG *pulPrivS LONG WINAPI TTGetEmbeddingType(HDC hDC, ULONG *status) { OUTLINETEXTMETRICW otm; + WORD fsType;
TRACE("(%p %p)\n", hDC, status);
@@ -88,7 +89,7 @@ LONG WINAPI TTGetEmbeddingType(HDC hDC, ULONG *status) if (!status) return E_PERMISSIONSINVALID;
- otm.otmfsType &= 0xf; + otm.otmfsType = (fsType = otm.otmfsType) & 0xf; if (otm.otmfsType == LICENSE_INSTALLABLE) *status = EMBED_INSTALLABLE; else if (otm.otmfsType & LICENSE_EDITABLE) @@ -103,6 +104,7 @@ LONG WINAPI TTGetEmbeddingType(HDC hDC, ULONG *status) *status = EMBED_INSTALLABLE; }
+ TRACE("fsType 0x%04x, status %u\n", fsType, *status); return E_NONE; }
@@ -124,7 +126,7 @@ LONG WINAPI TTIsEmbeddingEnabledForFacename(LPCSTR facename, BOOL *enabled)
*enabled = TRUE; if (RegOpenKeyExW(HKEY_LOCAL_MACHINE, exclusionlistW, 0, GENERIC_READ, &hkey)) - return E_NONE; + goto out;
*enabled = TRUE; ret = ERROR_SUCCESS; @@ -148,6 +150,8 @@ LONG WINAPI TTIsEmbeddingEnabledForFacename(LPCSTR facename, BOOL *enabled) } RegCloseKey(hkey);
+out: + TRACE("embedding %s for %s\n", *enabled ? "enabled" : "disabled", debugstr_a(facename)); return E_NONE; }