Commit ecf2e049 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: IWineD3DClipperImpl implements IWineD3DBase.

Unify the QueryInterface implementation a bit with the rest of wined3d while we're at it.
parent 23bf5025
...@@ -28,22 +28,23 @@ ...@@ -28,22 +28,23 @@
WINE_DEFAULT_DEBUG_CHANNEL(d3d); WINE_DEFAULT_DEBUG_CHANNEL(d3d);
static HRESULT WINAPI IWineD3DClipperImpl_QueryInterface(IWineD3DClipper *iface, REFIID riid, void **Obj) static HRESULT WINAPI IWineD3DClipperImpl_QueryInterface(IWineD3DClipper *iface, REFIID riid, void **object)
{ {
IWineD3DClipperImpl *This = (IWineD3DClipperImpl *)iface; TRACE("iface %p, riid %s, object %p.\n", iface, debugstr_guid(riid), object);
TRACE("(%p)->(%p,%p)\n", This, riid, Obj); if (IsEqualGUID(riid, &IID_IWineD3DClipper)
if (IsEqualGUID(&IID_IUnknown, riid) || IsEqualGUID(riid, &IID_IWineD3DBase)
|| IsEqualGUID(&IID_IWineD3DClipper, riid)) || IsEqualGUID(riid, &IID_IUnknown))
{ {
*Obj = iface; IUnknown_AddRef(iface);
IWineD3DClipper_AddRef(iface); *object = iface;
return S_OK; return S_OK;
} }
else
{ WARN("%s not implemented, returning E_NOINTERFACE.\n", debugstr_guid(riid));
return E_NOINTERFACE;
} *object = NULL;
return E_NOINTERFACE;
} }
static ULONG WINAPI IWineD3DClipperImpl_AddRef(IWineD3DClipper *iface ) static ULONG WINAPI IWineD3DClipperImpl_AddRef(IWineD3DClipper *iface )
......
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