Stefan Dösinger : wined3d: Remove an unnecessary NULL check.

Alexandre Julliard julliard at wine.codeweavers.com
Wed May 24 04:00:17 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 89ca7fffd49d167f0d08fe2b73e79178f4b45cd7
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=89ca7fffd49d167f0d08fe2b73e79178f4b45cd7

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Tue May 23 23:45:21 2006 +0200

wined3d: Remove an unnecessary NULL check.

---

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

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 6253d32..9fb52a8 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -2357,7 +2357,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_BltOv
                 LEAVE_GL();
 
                 if(!(This->Flags & SFLAG_DONOTFREE)) {
-                    if(This->resource.allocatedMemory) HeapFree(GetProcessHeap(), 0, This->resource.allocatedMemory);
+                    HeapFree(GetProcessHeap(), 0, This->resource.allocatedMemory);
                     This->resource.allocatedMemory = NULL;
                 } else {
                     This->Flags |= SFLAG_GLDIRTY;




More information about the wine-cvs mailing list