Commit e2ac51d8 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

combase: Use wide-char string literals.

parent eede9959
......@@ -39,11 +39,6 @@ static const char *debugstr_hstring(HSTRING hstr)
static HRESULT get_library_for_classid(const WCHAR *classid, WCHAR **out)
{
static const WCHAR classkeyW[] = {'S','o','f','t','w','a','r','e','\\',
'M','i','c','r','o','s','o','f','t','\\',
'W','i','n','d','o','w','s','R','u','n','t','i','m','e','\\',
'A','c','t','i','v','a','t','a','b','l','e','C','l','a','s','s','I','d',0};
static const WCHAR dllpathW[] = {'D','l','l','P','a','t','h',0};
HKEY hkey_root, hkey_class;
DWORD type, size;
HRESULT hr;
......@@ -52,7 +47,8 @@ static HRESULT get_library_for_classid(const WCHAR *classid, WCHAR **out)
*out = NULL;
/* load class registry key */
if (RegOpenKeyExW(HKEY_LOCAL_MACHINE, classkeyW, 0, KEY_READ, &hkey_root))
if (RegOpenKeyExW(HKEY_LOCAL_MACHINE, L"Software\\Microsoft\\WindowsRuntime\\ActivatableClassId",
0, KEY_READ, &hkey_root))
return REGDB_E_READREGDB;
if (RegOpenKeyExW(hkey_root, classid, 0, KEY_READ, &hkey_class))
{
......@@ -63,7 +59,7 @@ static HRESULT get_library_for_classid(const WCHAR *classid, WCHAR **out)
RegCloseKey(hkey_root);
/* load (and expand) DllPath registry value */
if (RegQueryValueExW(hkey_class, dllpathW, NULL, &type, NULL, &size))
if (RegQueryValueExW(hkey_class, L"DllPath", NULL, &type, NULL, &size))
{
hr = REGDB_E_READREGDB;
goto done;
......@@ -78,7 +74,7 @@ static HRESULT get_library_for_classid(const WCHAR *classid, WCHAR **out)
hr = E_OUTOFMEMORY;
goto done;
}
if (RegQueryValueExW(hkey_class, dllpathW, NULL, NULL, (BYTE *)buf, &size))
if (RegQueryValueExW(hkey_class, L"DllPath", NULL, NULL, (BYTE *)buf, &size))
{
hr = REGDB_E_READREGDB;
goto done;
......
......@@ -77,8 +77,7 @@ struct registered_if
static inline void get_rpc_endpoint(LPWSTR endpoint, const OXID *oxid)
{
/* FIXME: should get endpoint from rpcss */
static const WCHAR wszEndpointFormat[] = {'\\','p','i','p','e','\\','O','L','E','_','%','0','8','l','x','%','0','8','l','x',0};
wsprintfW(endpoint, wszEndpointFormat, (DWORD)(*oxid >> 32),(DWORD)*oxid);
wsprintfW(endpoint, L"\\pipe\\OLE_%08lx%08lx", (DWORD)(*oxid >> 32), (DWORD)*oxid);
}
typedef struct
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment