dmstyle: Implement IClassFactory::QueryInterface.
This commit is contained in:
parent
1afbbb749a
commit
ae43b099f9
|
@ -47,14 +47,24 @@ static inline IClassFactoryImpl *impl_from_IClassFactory(IClassFactory *iface)
|
||||||
|
|
||||||
static HRESULT WINAPI ClassFactory_QueryInterface(IClassFactory *iface, REFIID riid, void **ppv)
|
static HRESULT WINAPI ClassFactory_QueryInterface(IClassFactory *iface, REFIID riid, void **ppv)
|
||||||
{
|
{
|
||||||
FIXME("- no interface IID: %s\n", debugstr_guid(riid));
|
|
||||||
|
|
||||||
if (ppv == NULL)
|
if (ppv == NULL)
|
||||||
return E_POINTER;
|
return E_POINTER;
|
||||||
|
|
||||||
|
if (IsEqualGUID(&IID_IUnknown, riid))
|
||||||
|
TRACE("(%p)->(IID_IUnknown %p)\n", iface, ppv);
|
||||||
|
else if (IsEqualGUID(&IID_IClassFactory, riid))
|
||||||
|
TRACE("(%p)->(IID_IClassFactory %p)\n", iface, ppv);
|
||||||
|
else {
|
||||||
|
FIXME("(%p)->(%s %p)\n", iface, debugstr_guid(riid), ppv);
|
||||||
|
*ppv = NULL;
|
||||||
return E_NOINTERFACE;
|
return E_NOINTERFACE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
*ppv = iface;
|
||||||
|
IUnknown_AddRef((IUnknown*)*ppv);
|
||||||
|
return S_OK;
|
||||||
|
}
|
||||||
|
|
||||||
static ULONG WINAPI ClassFactory_AddRef(IClassFactory *iface)
|
static ULONG WINAPI ClassFactory_AddRef(IClassFactory *iface)
|
||||||
{
|
{
|
||||||
DMSTYLE_LockModule();
|
DMSTYLE_LockModule();
|
||||||
|
|
Loading…
Reference in New Issue