On 02/01/10 21:34, Nikolay Sivov wrote:
On 1/2/2010 12:48, Jeff Latimer wrote:
dlls/comctl32/listview.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
- dispInfo.item.cchTextMax = textlenT(pszText, isW)+2;
What does this '2' mean?
+1 adds the trailing null and +2 allows for the original text to be greater than the edited text. I thought that one extra byte would allow the test to complete in all cases.