Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
9df16935
Commit
9df16935
authored
Aug 12, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 12, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
>
parent
d01ab5ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
main.c
dlls/t2embed/main.c
+6
-2
No files found.
dlls/t2embed/main.c
View file @
9df16935
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment