[PATCH 1/10] ole32: CoGetClassObject shouldn't return
REGDB_E_KEYMISSING, so convert it to REGDB_E_CLASSNOTREG.
Robert Shearman
rob at codeweavers.com
Mon May 7 17:55:38 CDT 2007
---
dlls/ole32/compobj.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
-------------- next part --------------
diff --git a/dlls/ole32/compobj.c b/dlls/ole32/compobj.c
index 3e3eef7..f90b0ea 100644
--- a/dlls/ole32/compobj.c
+++ b/dlls/ole32/compobj.c
@@ -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))
More information about the wine-patches
mailing list