user32: Remove redundant not NULL check of variable item (coccicheck).
Michael Stefaniuc
mstefani at redhat.de
Mon May 17 18:32:11 CDT 2010
item is checked to not be NULL in the respective block (it can be NULL
in other parts of that function though).
---
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);
}
--
1.7.1
More information about the wine-patches
mailing list