From af2c3496850c3fff490f431975f007a92bcc009f Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Mon, 7 May 2007 23:55:38 +0100 Subject: [PATCH] ole32: CoGetClassObject shouldn't return REGDB_E_KEYMISSING, so convert it to REGDB_E_CLASSNOTREG. --- dlls/ole32/compobj.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/dlls/ole32/compobj.c b/dlls/ole32/compobj.c index 3e3eef78cca..f90b0eaeaae 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))