Re: Treeview fix

2002-10-23 Thread Jeff Smith
This patch did the trick. Well I cannot test it at the moment, but as the value INT_MAX (0x7fff) was the issue, I know this will fix it. The limit works a lot better (is a lot safer) than the 'special' value. ... -if (i == 0x7fff) +if (i >= 0x7fff) i = hdpa->nItemCount; ...

Re: Treeview fix

2002-10-23 Thread Dimitrie O. Paun
On October 23, 2002 01:29 am, Jeff Smith wrote: > Oops, your previous message got lost in the shuffle... > I'm sure anything is better than the little patch I wrote. > I was just taking a minimalist approach to get treeview working. No, your patch was quite good. Would have certainly fixed the tre

Re: Treeview fix

2002-10-22 Thread Jeff Smith
Oops, your previous message got lost in the shuffle... I'm sure anything is better than the little patch I wrote. I was just taking a minimalist approach to get treeview working. -- Jeff S Dimi wrote: On October 23, 2002 12:44 am, Jeff Smith wrote: > I discovered treeview uses DSA's and Dimi rec

Re: Treeview fix

2002-10-22 Thread Dimitrie O. Paun
On October 23, 2002 12:44 am, Jeff Smith wrote: > I discovered treeview uses DSA's and Dimi recently > changed the max element number in DSA's to 0x7fff (SHRT_MAX). > Note this value has the special meaning in DSA_InsertPtr > functions of 'add new element to end of array'. This was my initial reac

Treeview fix

2002-10-22 Thread Jeff Smith
ve regedit now works. Questions for further thought: I wonder, should 0x7fff be used explicitly, or should SHRT_MAX be used in places like this instead? Changelog: Treeview fix due to change in maximum DSA size. -- Jeff S. Index: dlls