d3dx9: Removed a duplicate NULL check.

Dylan Smith dylan.ah.smith at gmail.com
Thu Oct 13 08:12:55 CDT 2011


The frame variable isn't reassigned, and an error is returned at the start
of the function if it is NULL.
---
 dlls/d3dx9_36/mesh.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/d3dx9_36/mesh.c b/dlls/d3dx9_36/mesh.c
index 6e1433e..2460373 100644
--- a/dlls/d3dx9_36/mesh.c
+++ b/dlls/d3dx9_36/mesh.c
@@ -3444,7 +3444,7 @@ HRESULT WINAPI D3DXFrameDestroy(LPD3DXFRAME frame, LPD3DXALLOCATEHIERARCHY alloc
             current_frame = frame->pFrameSibling;
             frame->pFrameSibling = current_frame->pFrameSibling;
             current_frame->pFrameSibling = NULL;
-        } else if (frame) {
+        } else {
             current_frame = frame;
             last = TRUE;
         }
-- 
1.7.4.1



More information about the wine-patches mailing list