Commit f3d96222 authored by Huw D M Davies's avatar Huw D M Davies Committed by Alexandre Julliard

Better failure messages for CoCreateInstance.

parent 10a5ded4
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment