Commit 2192f2de authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

combase: Don't start dllhost if the CLSID key doesn't exist.

parent 60e10a05
......@@ -538,6 +538,12 @@ static HRESULT create_surrogate_server(REFCLSID rclsid, HANDLE *process)
TRACE("Attempting to start surrogate server for %s\n", debugstr_guid(rclsid));
hr = open_key_for_clsid(rclsid, NULL, KEY_READ, &key);
if (FAILED(hr) && (arch == 64 || (IsWow64Process(GetCurrentProcess(), &is_wow64) && is_wow64)))
hr = open_key_for_clsid(rclsid, NULL, opposite | KEY_READ, &key);
if (FAILED(hr)) return hr;
RegCloseKey(key);
hr = open_appidkey_from_clsid(rclsid, KEY_READ, &key);
if (FAILED(hr) && (arch == 64 || (IsWow64Process(GetCurrentProcess(), &is_wow64) && is_wow64)))
{
......
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