Commit 26978a4d authored by H. Verbeet's avatar H. Verbeet Committed by Alexandre Julliard

wined3d: Return the result of QueryInterface in GetContainer.

parent 7b8bf46f
......@@ -236,10 +236,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_GetContainer(IWineD3DSurface* iface, REFIID r
}
TRACE("Relaying to QueryInterface\n");
if (IUnknown_QueryInterface(container, riid, ppContainer) != S_OK)
return WINED3DERR_INVALIDCALL;
return WINED3D_OK;
return IUnknown_QueryInterface(container, riid, ppContainer);
}
HRESULT WINAPI IWineD3DSurfaceImpl_GetDesc(IWineD3DSurface *iface, WINED3DSURFACE_DESC *pDesc) {
......
......@@ -142,10 +142,7 @@ HRESULT WINAPI IWineD3DVolumeImpl_GetContainer(IWineD3DVolume *iface, REFIID rii
}
TRACE("Relaying to QueryInterface\n");
if (IUnknown_QueryInterface(This->container, riid, ppContainer) != S_OK)
return WINED3DERR_INVALIDCALL;
return WINED3D_OK;
return IUnknown_QueryInterface(This->container, riid, ppContainer);
}
HRESULT WINAPI IWineD3DVolumeImpl_GetDesc(IWineD3DVolume *iface, WINED3DVOLUME_DESC* pDesc) {
......
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