Michael Stefaniuc : wined3d: Remove a return after a return.
Found by Smatch.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Jul 25 07:44:11 CDT 2007
Module: wine
Branch: master
Commit: 25707d4c5dd2ecea573f804ff6a42188e52d8e40
URL: http://source.winehq.org/git/wine.git/?a=commit;h=25707d4c5dd2ecea573f804ff6a42188e52d8e40
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Tue Jul 24 22:29:16 2007 +0200
wined3d: Remove a return after a return. Found by Smatch.
---
dlls/wined3d/surface.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 07467be..11e0fba 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -3152,7 +3152,7 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_BltZ(IWineD3DSurfaceImpl *This, RECT *
{
IWineD3DDeviceImpl *myDevice = This->resource.wineD3DDevice;
- if (Flags & WINEDDBLT_DEPTHFILL) {
+ if (Flags & WINEDDBLT_DEPTHFILL)
return IWineD3DDevice_Clear((IWineD3DDevice *) myDevice,
DestRect == NULL ? 0 : 1,
(WINED3DRECT *) DestRect,
@@ -3161,9 +3161,6 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_BltZ(IWineD3DSurfaceImpl *This, RECT *
(float) DDBltFx->u5.dwFillDepth / (float) MAXDWORD,
0x00000000);
- return WINED3D_OK;
- }
-
FIXME("(%p): Unsupp depthstencil blit\n", This);
return WINED3DERR_INVALIDCALL;
}
More information about the wine-cvs
mailing list