Commit c293a535 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

user32: Invalidate a being removed listbox item before deleting it as it's been…

user32: Invalidate a being removed listbox item before deleting it as it's been done before d2ecb119.
parent f83b299b
......@@ -1725,14 +1725,14 @@ static LRESULT LISTBOX_RemoveItem( LB_DESCR *descr, INT index )
if ((index < 0) || (index >= descr->nb_items)) return LB_ERR;
/* We need to invalidate the original rect instead of the updated one. */
LISTBOX_InvalidateItems( descr, index );
descr->nb_items--;
LISTBOX_DeleteItem( descr, index );
if (!descr->nb_items) return LB_OKAY;
/* We need to invalidate the original rect instead of the updated one. */
LISTBOX_InvalidateItems( descr, index );
/* Remove the item */
item = &descr->items[index];
......
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