Reverse the order for deleting the items in resetcontent to correctly

empty a comboboxex.
This commit is contained in:
Maxime Bellengé 2005-02-21 18:31:02 +00:00 committed by Alexandre Julliard
parent 35537fe977
commit 64a429671a

View File

@ -1706,7 +1706,7 @@ static void LISTBOX_ResetContent( LB_DESCR *descr )
{
INT i;
for (i = 0; i < descr->nb_items; i++) LISTBOX_DeleteItem( descr, i );
for(i = descr->nb_items - 1; i>=0; i--) LISTBOX_DeleteItem( descr, i);
HeapFree( GetProcessHeap(), 0, descr->items );
descr->nb_items = 0;
descr->top_item = 0;