ole32: CoGetClassObject shouldn't return REGDB_E_KEYMISSING, so convert it to REGDB_E_CLASSNOTREG.
This commit is contained in:
parent
891f7febca
commit
af2c349685
|
@ -2024,8 +2024,11 @@ HRESULT WINAPI CoGetClassObject(
|
||||||
{
|
{
|
||||||
if (hres == REGDB_E_CLASSNOTREG)
|
if (hres == REGDB_E_CLASSNOTREG)
|
||||||
ERR("class %s not registered\n", debugstr_guid(rclsid));
|
ERR("class %s not registered\n", debugstr_guid(rclsid));
|
||||||
else
|
else if (hres == REGDB_E_KEYMISSING)
|
||||||
|
{
|
||||||
WARN("class %s not registered as in-proc server\n", debugstr_guid(rclsid));
|
WARN("class %s not registered as in-proc server\n", debugstr_guid(rclsid));
|
||||||
|
hres = REGDB_E_CLASSNOTREG;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (SUCCEEDED(hres))
|
if (SUCCEEDED(hres))
|
||||||
|
@ -2051,8 +2054,11 @@ HRESULT WINAPI CoGetClassObject(
|
||||||
{
|
{
|
||||||
if (hres == REGDB_E_CLASSNOTREG)
|
if (hres == REGDB_E_CLASSNOTREG)
|
||||||
ERR("class %s not registered\n", debugstr_guid(rclsid));
|
ERR("class %s not registered\n", debugstr_guid(rclsid));
|
||||||
else
|
else if (hres == REGDB_E_KEYMISSING)
|
||||||
|
{
|
||||||
WARN("class %s not registered in-proc handler\n", debugstr_guid(rclsid));
|
WARN("class %s not registered in-proc handler\n", debugstr_guid(rclsid));
|
||||||
|
hres = REGDB_E_CLASSNOTREG;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (SUCCEEDED(hres))
|
if (SUCCEEDED(hres))
|
||||||
|
|
Loading…
Reference in New Issue