From f3d962226f704f536aa583732f9e95a9fe4fcdb8 Mon Sep 17 00:00:00 2001 From: Huw D M Davies Date: Tue, 23 Oct 2001 19:52:08 +0000 Subject: [PATCH] Better failure messages for CoCreateInstance. --- dlls/ole32/compobj.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dlls/ole32/compobj.c b/dlls/ole32/compobj.c index c1008ec6ea4..e7c4bdf0371 100644 --- a/dlls/ole32/compobj.c +++ b/dlls/ole32/compobj.c @@ -1454,7 +1454,8 @@ HRESULT WINAPI CoCreateInstance( (LPVOID)&lpclf); if (FAILED(hres)) { - FIXME("no instance created for %s, hres is 0x%08lx\n",debugstr_guid(iid),hres); + FIXME("no classfactory created for %s, hres is 0x%08lx\n", + debugstr_guid(rclsid),hres); return hres; } @@ -1463,6 +1464,9 @@ HRESULT WINAPI CoCreateInstance( */ hres = IClassFactory_CreateInstance(lpclf, pUnkOuter, iid, ppv); IClassFactory_Release(lpclf); + if(FAILED(hres)) + FIXME("no instance created for interface %s of class %s, hres is 0x%08lx\n", + debugstr_guid(iid), debugstr_guid(rclsid),hres); return hres; }