mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 05:50:37 +00:00
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>
This commit is contained in:
parent
7bc4e49f11
commit
85925f6907
|
@ -107,8 +107,6 @@ LONG WINAPI TTGetEmbeddingType(HDC hDC, ULONG *status)
|
|||
|
||||
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;
|
||||
HKEY hkey;
|
||||
LONG ret;
|
||||
|
@ -122,7 +120,7 @@ LONG WINAPI TTIsEmbeddingEnabledForFacename(LPCSTR facename, BOOL *enabled)
|
|||
return E_PBENABLEDINVALID;
|
||||
|
||||
*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;
|
||||
|
||||
*enabled = TRUE;
|
||||
|
|
Loading…
Reference in a new issue