static HRESULT WINAPI ClassFactory_CreateInstance(IClassFactory *iface, IUnknown *pOuter, REFIID riid, void **ppv) { ClassFactory *This = impl_from_IClassFactory(iface); HRESULT ret; IUnknown *obj; TRACE("(%p, %p, %s, %p)\n", iface, pOuter, debugstr_guid(riid), ppv); ret = This->cf(pOuter, &obj); if (FAILED(ret)) return ret; ret = IUnknown_QueryInterface(obj,riid,ppv); IUnknown_Release(obj); return ret; }
static HRESULT WINAPI ClassFactory_CreateInstance(IClassFactory *iface, IUnknown *pOuter, REFIID riid, void **ppv) { ClassFactory *This = (ClassFactory*)iface; return This->cf(pOuter, riid, ppv); }