Rob Shearman : ole32: CoGetClassObject shouldn't return REGDB_E_KEYMISSING, so convert it to REGDB_E_CLASSNOTREG.
Module: wine Branch: master Commit: af2c3496850c3fff490f431975f007a92bcc009f URL: http://source.winehq.org/git/wine.git/?a=commit;h=af2c3496850c3fff490f431975... Author: Rob Shearman <rob(a)codeweavers.com> Date: Mon May 7 23:55:38 2007 +0100 ole32: CoGetClassObject shouldn't return REGDB_E_KEYMISSING, so convert it to REGDB_E_CLASSNOTREG. --- dlls/ole32/compobj.c | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) 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))
participants (1)
-
Alexandre Julliard