LISTVIEW_SetItemCount without LVS_OWNERDATA

Dimitrie O. Paun dpaun at rogers.com
Sun Feb 2 16:55:50 CST 2003


On February 2, 2003 05:46 pm, Duane Clark wrote:
> +        infoPtr->nItemCount = nItems;

We should have infoPtr->nItemCount correct at the end of every iteration
through the loop, otherwise we get into problems if we run out of memory,
and we exit the look early:

> +            if ( !(lpItem = (ITEM_INFO *)COMCTL32_Alloc(sizeof(ITEM_INFO))) )
> +               return 0;


-- 
Dimi.




More information about the wine-devel mailing list