Commit e98cef49 authored by Jay Yang's avatar Jay Yang Committed by Alexandre Julliard

comclt32: Ensure that item data is actually sent out with notifications.

parent dadcdb71
......@@ -672,6 +672,7 @@ static INT COMBOEX_InsertItemW (COMBOEX_INFO *infoPtr, COMBOBOXEXITEMW const *ci
SendMessageW (infoPtr->hwndCombo, CB_INSERTSTRING, cit->iItem, (LPARAM)item);
memset (&nmcit.ceItem, 0, sizeof(nmcit.ceItem));
nmcit.ceItem.mask=~0;
COMBOEX_CopyItem (item, &nmcit.ceItem);
COMBOEX_NotifyItem (infoPtr, CBEN_INSERTITEM, &nmcit);
......@@ -1304,6 +1305,7 @@ static BOOL COMBOEX_WM_DeleteItem (COMBOEX_INFO *infoPtr, DELETEITEMSTRUCT const
infoPtr->nb_items--;
memset (&nmcit.ceItem, 0, sizeof(nmcit.ceItem));
nmcit.ceItem.mask=~0;
COMBOEX_CopyItem (olditem, &nmcit.ceItem);
COMBOEX_NotifyItem (infoPtr, CBEN_DELETEITEM, &nmcit);
......
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