mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
COMBOEX_DrawItem: check return value of SendMessageA(...,CB_GETITEMDATA,...)
This commit is contained in:
parent
d654f94f21
commit
a07258d581
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue