Commit 7100dd4b authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

user32/listbox: Remove deadcode (Coverity).

parent f415b5dd
...@@ -568,12 +568,12 @@ static void LISTBOX_PaintItem( LB_DESCR *descr, HDC hdc, const RECT *rect, ...@@ -568,12 +568,12 @@ static void LISTBOX_PaintItem( LB_DESCR *descr, HDC hdc, const RECT *rect,
dis.hDC = hdc; dis.hDC = hdc;
dis.itemID = index; dis.itemID = index;
dis.itemState = 0; dis.itemState = 0;
if (item && item->selected) dis.itemState |= ODS_SELECTED; if (item->selected) dis.itemState |= ODS_SELECTED;
if (!ignoreFocus && (descr->focus_item == index) && if (!ignoreFocus && (descr->focus_item == index) &&
(descr->caret_on) && (descr->caret_on) &&
(descr->in_focus)) dis.itemState |= ODS_FOCUS; (descr->in_focus)) dis.itemState |= ODS_FOCUS;
if (!IsWindowEnabled(descr->self)) dis.itemState |= ODS_DISABLED; if (!IsWindowEnabled(descr->self)) dis.itemState |= ODS_DISABLED;
dis.itemData = item ? item->data : 0; dis.itemData = item->data;
dis.rcItem = *rect; dis.rcItem = *rect;
TRACE("[%p]: drawitem %d (%s) action=%02x state=%02x rect=%d,%d-%d,%d\n", TRACE("[%p]: drawitem %d (%s) action=%02x state=%02x rect=%d,%d-%d,%d\n",
descr->self, index, item ? debugstr_w(item->str) : "", action, descr->self, index, item ? debugstr_w(item->str) : "", action,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment