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
85925f69
Commit
85925f69
authored
Oct 30, 2019
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 30, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
t2embed: Use a wchar string literal instead of a temp variable.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7bc4e49f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
main.c
dlls/t2embed/main.c
+1
-3
No files found.
dlls/t2embed/main.c
View file @
85925f69
...
@@ -107,8 +107,6 @@ LONG WINAPI TTGetEmbeddingType(HDC hDC, ULONG *status)
...
@@ -107,8 +107,6 @@ LONG WINAPI TTGetEmbeddingType(HDC hDC, ULONG *status)
LONG
WINAPI
TTIsEmbeddingEnabledForFacename
(
LPCSTR
facename
,
BOOL
*
enabled
)
LONG
WINAPI
TTIsEmbeddingEnabledForFacename
(
LPCSTR
facename
,
BOOL
*
enabled
)
{
{
static
const
WCHAR
exclusionlistW
[]
=
{
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
'M'
,
'i'
,
'c'
,
'r'
,
'o'
,
's'
,
'o'
,
'f'
,
't'
,
'\\'
,
'S'
,
'h'
,
'a'
,
'r'
,
'e'
,
'd'
,
' '
,
'T'
,
'o'
,
'o'
,
'l'
,
's'
,
'\\'
,
't'
,
'2'
,
'e'
,
'm'
,
'b'
,
'e'
,
'd'
,
0
};
DWORD
index
;
DWORD
index
;
HKEY
hkey
;
HKEY
hkey
;
LONG
ret
;
LONG
ret
;
...
@@ -122,7 +120,7 @@ LONG WINAPI TTIsEmbeddingEnabledForFacename(LPCSTR facename, BOOL *enabled)
...
@@ -122,7 +120,7 @@ LONG WINAPI TTIsEmbeddingEnabledForFacename(LPCSTR facename, BOOL *enabled)
return
E_PBENABLEDINVALID
;
return
E_PBENABLEDINVALID
;
*
enabled
=
TRUE
;
*
enabled
=
TRUE
;
if
(
RegOpenKeyExW
(
HKEY_LOCAL_MACHINE
,
exclusionlistW
,
0
,
GENERIC_READ
,
&
hkey
))
if
(
RegOpenKeyExW
(
HKEY_LOCAL_MACHINE
,
L"Software
\\
Microsoft
\\
Shared Tools
\\
t2embed"
,
0
,
GENERIC_READ
,
&
hkey
))
goto
out
;
goto
out
;
*
enabled
=
TRUE
;
*
enabled
=
TRUE
;
...
...
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