Janitorial: Remove two redundant checks for NULL.

Michael Stefaniuc mstefani at redhat.de
Wed Mar 7 15:16:48 CST 2007


---
 dlls/shell32/pidl.c   |    3 +--
 dlls/wined3d/device.c |    2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/dlls/shell32/pidl.c b/dlls/shell32/pidl.c
index 97cf051..af77eec 100644
--- a/dlls/shell32/pidl.c
+++ b/dlls/shell32/pidl.c
@@ -913,8 +913,7 @@ void WINAPI ILGlobalFree( LPITEMIDLIST pidl)
 {
     TRACE("%p\n", pidl);
 
-    if (pidl)
-        Free(pidl);
+    Free(pidl);
 }
 
 /*************************************************************************
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index fb4c17b..0998eec 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -1507,7 +1507,7 @@ error:
             FIXME("(%p) Something's still holding the front buffer\n",This);
         }
     }
-    if(object) HeapFree(GetProcessHeap(), 0, object);
+    HeapFree(GetProcessHeap(), 0, object);
     return hr;
 }
 
-- 
1.5.0.2


-- 
Michael Stefaniuc               Tel.: +49-711-96437-199
Sr. Network Engineer            Fax.: +49-711-96437-111
Red Hat GmbH                    Email: mstefani at redhat.com
Hauptstaetterstr. 58            http://www.redhat.de/
D-70178 Stuttgart
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070307/612ac9e9/attachment-0001.pgp


More information about the wine-patches mailing list