Commit a07258d5 authored by Uwe Bonnes's avatar Uwe Bonnes Committed by Alexandre Julliard

COMBOEX_DrawItem: check return value of SendMessageA(...,CB_GETITEMDATA,...)

parent d654f94f
......@@ -572,6 +572,11 @@ COMBOEX_DrawItem (HWND hwnd, WPARAM wParam, LPARAM lParam)
item = (CBE_ITEMDATA *)SendMessageA (infoPtr->hwndCombo, CB_GETITEMDATA,
(WPARAM)dis->itemID, 0);
if (item == (CBE_ITEMDATA *)CB_ERR)
{
TRACE("invalid item for id %d \n",dis->itemID);
return 0;
}
if (!TRACE_ON(message)) {
TRACE("DRAWITEMSTRUCT: CtlType=0x%08x CtlID=0x%08x\n",
dis->CtlType, dis->CtlID);
......
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