[PATCH] comctl32: removed useless NULL check (Coverity)

Marcus Meissner marcus at jet.franken.de
Sun Nov 15 09:57:11 CST 2009


Hi,

himl = NULL will be caught by a error return earlier,
at the cleanup: label himl is verified to be non-NULL.

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

diff --git a/dlls/comctl32/imagelist.c b/dlls/comctl32/imagelist.c
index 82d2664..a8101e6 100644
--- a/dlls/comctl32/imagelist.c
+++ b/dlls/comctl32/imagelist.c
@@ -673,7 +673,7 @@ ImageList_Create (INT cx, INT cy, UINT flags,
     return himl;
 
 cleanup:
-    if (himl) ImageList_Destroy(himl);
+    ImageList_Destroy(himl);
     return NULL;
 }
 
-- 
1.5.6



More information about the wine-patches mailing list