d3d8: Remove pointless casts to the type of the casted expression.

This commit is contained in:
Michael Stefaniuc 2011-09-15 16:33:41 +02:00 committed by Alexandre Julliard
parent 8de5db6030
commit 99f770e4ef
4 changed files with 4 additions and 4 deletions

View file

@ -97,7 +97,7 @@ static HRESULT WINAPI IDirect3DCubeTexture8Impl_GetDevice(IDirect3DCubeTexture8
TRACE("iface %p, device %p.\n", iface, device);
*device = (IDirect3DDevice8 *)This->parentDevice;
*device = This->parentDevice;
IDirect3DDevice8_AddRef(*device);
TRACE("Returning device %p.\n", *device);

View file

@ -134,7 +134,7 @@ static HRESULT WINAPI IDirect3DSurface8Impl_GetDevice(IDirect3DSurface8 *iface,
return hr;
}
*device = (IDirect3DDevice8 *)This->parentDevice;
*device = This->parentDevice;
IDirect3DDevice8_AddRef(*device);
TRACE("Returning device %p.\n", *device);

View file

@ -96,7 +96,7 @@ static HRESULT WINAPI IDirect3DTexture8Impl_GetDevice(IDirect3DTexture8 *iface,
TRACE("iface %p, device %p.\n", iface, device);
*device = (IDirect3DDevice8 *)This->parentDevice;
*device = This->parentDevice;
IDirect3DDevice8_AddRef(*device);
TRACE("Returning device %p.\n", *device);

View file

@ -95,7 +95,7 @@ static HRESULT WINAPI IDirect3DVolumeTexture8Impl_GetDevice(IDirect3DVolumeTextu
TRACE("iface %p, device %p.\n", iface, device);
*device = (IDirect3DDevice8 *)This->parentDevice;
*device = This->parentDevice;
IDirect3DDevice8_AddRef(*device);
TRACE("Returning device %p.\n", *device);