wined3d: Return the correct parent in IWineD3DPixelShaderImpl_GetParent.

Remove an unnecessary cast.
This commit is contained in:
H. Verbeet 2005-12-03 18:10:56 +01:00 committed by Alexandre Julliard
parent d48f6f3682
commit 246b07de7c
2 changed files with 2 additions and 2 deletions

View file

@ -100,7 +100,7 @@ ULONG WINAPI IWineD3DPixelShaderImpl_Release(IWineD3DPixelShader *iface) {
HRESULT WINAPI IWineD3DPixelShaderImpl_GetParent(IWineD3DPixelShader *iface, IUnknown** parent){
IWineD3DPixelShaderImpl *This = (IWineD3DPixelShaderImpl *)iface;
*parent= (IUnknown*) parent;
*parent = This->parent;
IUnknown_AddRef(*parent);
TRACE("(%p) : returning %p\n", This, *parent);
return D3D_OK;

View file

@ -2012,7 +2012,7 @@ ULONG WINAPI IWineD3DVertexShaderImpl_Release(IWineD3DVertexShader *iface) {
HRESULT WINAPI IWineD3DVertexShaderImpl_GetParent(IWineD3DVertexShader *iface, IUnknown** parent){
IWineD3DVertexShaderImpl *This = (IWineD3DVertexShaderImpl *)iface;
*parent = (IUnknown*)This->parent;
*parent = This->parent;
IUnknown_AddRef(*parent);
TRACE("(%p) : returning %p\n", This, *parent);
return D3D_OK;