[PATCH] t2embed: Use a wchar string literal instead of a temp variable
Michael Stefaniuc
mstefani at winehq.org
Tue Oct 29 18:41:35 CDT 2019
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
dlls/t2embed/main.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/dlls/t2embed/main.c b/dlls/t2embed/main.c
index e47884611c..1200564028 100644
--- a/dlls/t2embed/main.c
+++ b/dlls/t2embed/main.c
@@ -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;
--
2.20.1
More information about the wine-devel
mailing list