ddraw: Remove unneeded casts.

This commit is contained in:
Andrew Talbot 2007-12-05 21:28:34 +00:00 committed by Alexandre Julliard
parent f2df3d7582
commit 1f73a97a5a
2 changed files with 2 additions and 2 deletions

View File

@ -1725,7 +1725,7 @@ ULONG WINAPI D3D7CB_DestroyDepthStencilSurface(IWineD3DSurface *pSurface) {
IUnknown* surfaceParent; IUnknown* surfaceParent;
TRACE("(%p) call back\n", pSurface); TRACE("(%p) call back\n", pSurface);
IWineD3DSurface_GetParent(pSurface, (IUnknown **) &surfaceParent); IWineD3DSurface_GetParent(pSurface, &surfaceParent);
IUnknown_Release(surfaceParent); IUnknown_Release(surfaceParent);
return IUnknown_Release(surfaceParent); return IUnknown_Release(surfaceParent);
} }

View File

@ -4179,7 +4179,7 @@ IDirect3DDeviceImpl_7_GetTexture(IDirect3DDevice7 *iface,
} }
EnterCriticalSection(&ddraw_cs); EnterCriticalSection(&ddraw_cs);
hr = IWineD3DDevice_GetTexture(This->wineD3DDevice, Stage, (IWineD3DBaseTexture **) &Surf); hr = IWineD3DDevice_GetTexture(This->wineD3DDevice, Stage, &Surf);
if( (hr != D3D_OK) || (!Surf) ) if( (hr != D3D_OK) || (!Surf) )
{ {
*Texture = NULL; *Texture = NULL;