ddraw: Remove unneeded casts

Andrew Talbot andrew.talbot at talbotville.com
Wed Dec 5 15:28:34 CST 2007


Changelog:
    ddraw: Remove unneeded casts.

diff --git a/dlls/ddraw/ddraw.c b/dlls/ddraw/ddraw.c
index 7785624..5e2d564 100644
--- a/dlls/ddraw/ddraw.c
+++ b/dlls/ddraw/ddraw.c
@@ -1725,7 +1725,7 @@ ULONG WINAPI D3D7CB_DestroyDepthStencilSurface(IWineD3DSurface *pSurface) {
     IUnknown* surfaceParent;
     TRACE("(%p) call back\n", pSurface);
 
-    IWineD3DSurface_GetParent(pSurface, (IUnknown **) &surfaceParent);
+    IWineD3DSurface_GetParent(pSurface, &surfaceParent);
     IUnknown_Release(surfaceParent);
     return IUnknown_Release(surfaceParent);
 }
diff --git a/dlls/ddraw/device.c b/dlls/ddraw/device.c
index 3091017..53ef2f1 100644
--- a/dlls/ddraw/device.c
+++ b/dlls/ddraw/device.c
@@ -4179,7 +4179,7 @@ IDirect3DDeviceImpl_7_GetTexture(IDirect3DDevice7 *iface,
     }
 
     EnterCriticalSection(&ddraw_cs);
-    hr = IWineD3DDevice_GetTexture(This->wineD3DDevice, Stage, (IWineD3DBaseTexture **) &Surf);
+    hr = IWineD3DDevice_GetTexture(This->wineD3DDevice, Stage, &Surf);
     if( (hr != D3D_OK) || (!Surf) ) 
     {
         *Texture = NULL;



More information about the wine-patches mailing list