wined3d: Return the result of QueryInterface in GetContainer.
This commit is contained in:
parent
7b8bf46f3f
commit
26978a4d2d
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue