Skip to content
Snippets Groups Projects
Commit 9ad9017e authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard
Browse files

Do not call ownerdraw for invalid items (empty focusrects).

Fixes Eudora 16bit empty Inbox problem.
parent bfd02281
No related branches found
No related tags found
No related merge requests found
......@@ -453,6 +453,14 @@ static void LISTBOX_PaintItem( WND *wnd, LB_DESCR *descr, HDC32 hdc,
DRAWITEMSTRUCT32 dis;
UINT32 id = (descr->lphc) ? ID_CB_LISTBOX : wnd->wIDmenu;
if (!item)
{
if (action == ODA_FOCUS)
DrawFocusRect32( hdc, rect );
else
FIXME(listbox,"called with an out of bounds index %d(%d) in owner draw, Not good.\n",index,descr->nb_items);
return;
}
dis.CtlType = ODT_LISTBOX;
dis.CtlID = id;
dis.hwndItem = wnd->hwndSelf;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment