ole32: CoGetClassObject shouldn't return REGDB_E_KEYMISSING, so convert it to REGDB_E_CLASSNOTREG.

This commit is contained in:
Rob Shearman 2007-05-07 23:55:38 +01:00 committed by Alexandre Julliard
parent 891f7febca
commit af2c349685
1 changed files with 8 additions and 2 deletions

View File

@ -2024,8 +2024,11 @@ HRESULT WINAPI CoGetClassObject(
{
if (hres == REGDB_E_CLASSNOTREG)
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));
hres = REGDB_E_CLASSNOTREG;
}
}
if (SUCCEEDED(hres))
@ -2051,8 +2054,11 @@ HRESULT WINAPI CoGetClassObject(
{
if (hres == REGDB_E_CLASSNOTREG)
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));
hres = REGDB_E_CLASSNOTREG;
}
}
if (SUCCEEDED(hres))