Commit 64a42967 authored by Maxime Bellengé's avatar Maxime Bellengé Committed by Alexandre Julliard

Reverse the order for deleting the items in resetcontent to correctly

empty a comboboxex.
parent 35537fe9
...@@ -1706,7 +1706,7 @@ static void LISTBOX_ResetContent( LB_DESCR *descr ) ...@@ -1706,7 +1706,7 @@ static void LISTBOX_ResetContent( LB_DESCR *descr )
{ {
INT i; 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 ); HeapFree( GetProcessHeap(), 0, descr->items );
descr->nb_items = 0; descr->nb_items = 0;
descr->top_item = 0; descr->top_item = 0;
......
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