oledlg: Cast-qual warnings fix
Andrew.Talbot at talbotville.com
Thu Nov 9 11:42:12 CST 2006
Huw Davies wrote:
> On Wed, Nov 08, 2006 at 09:56:54PM +0000, Andrew Talbot wrote:
>> @@ -666,16 +672,20 @@
>> if(psA->cPasteEntries > 0)
>> UINT i;
>> - for(i = 0; i < psA->cPasteEntries; i++)
>> + for(i = psA->cPasteEntries; i != 0;)
> Was there any need for this?
At the time, I thought it good to return the memory in the reverse order to
which it was acquired, in the same way that one gives back stack memory. I
also thought it might reduce the chance of heap fragmentation, slightly.
I shall submit a version that doesn't alter the loop.
More information about the wine-devel