[PATCH] ddraw: removed superflous NULL check (Coverity)

Marcus Meissner marcus at jet.franken.de
Tue Jun 14 06:02:32 CDT 2011


Hi,

We deref src above, and there is a comment saying it is not
NULL. CID 5057

Ciao, Marcus
---
 dlls/ddraw/surface.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/ddraw/surface.c b/dlls/ddraw/surface.c
index 504e107..38be89c 100644
--- a/dlls/ddraw/surface.c
+++ b/dlls/ddraw/surface.c
@@ -3482,7 +3482,7 @@ static HRESULT WINAPI ddraw_surface7_BltFast(IDirectDrawSurface7 *iface, DWORD d
 
     EnterCriticalSection(&ddraw_cs);
     hr = wined3d_surface_bltfast(This->wined3d_surface, dstx, dsty,
-            src ? src->wined3d_surface : NULL, rsrc, trans);
+            src->wined3d_surface, rsrc, trans);
     LeaveCriticalSection(&ddraw_cs);
     switch(hr)
     {
-- 
1.7.3.4




More information about the wine-patches mailing list