user32: Invalidate a being removed listbox item before deleting it as it's been done before d2ecb11941.

This commit is contained in:
Dmitry Timoshkov 2009-05-19 15:00:21 +09:00 committed by Alexandre Julliard
parent f83b299bd2
commit c293a535c0
1 changed files with 3 additions and 3 deletions

View File

@ -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];