Michael Stefaniuc : user32: Remove redundant not NULL check of variable item (coccicheck).

Alexandre Julliard julliard at winehq.org
Tue May 18 12:32:57 CDT 2010


Module: wine
Branch: master
Commit: 48e36e43ddfa613afdca988cb60979a1726f4a0c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=48e36e43ddfa613afdca988cb60979a1726f4a0c

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Tue May 18 01:32:11 2010 +0200

user32: Remove redundant not NULL check of variable item (coccicheck).

---

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

diff --git a/dlls/user32/listbox.c b/dlls/user32/listbox.c
index 059be04..d7f86a6 100644
--- a/dlls/user32/listbox.c
+++ b/dlls/user32/listbox.c
@@ -562,7 +562,7 @@ static void LISTBOX_PaintItem( LB_DESCR *descr, HDC hdc, const RECT *rect,
         dis.itemData     = item->data;
         dis.rcItem       = *rect;
         TRACE("[%p]: drawitem %d (%s) action=%02x state=%02x rect=%s\n",
-              descr->self, index, item ? debugstr_w(item->str) : "", action,
+              descr->self, index, debugstr_w(item->str), action,
               dis.itemState, wine_dbgstr_rect(rect) );
         SendMessageW(descr->owner, WM_DRAWITEM, dis.CtlID, (LPARAM)&dis);
     }




More information about the wine-cvs mailing list