comctl32: cchTextMax needs to be set for LVS_OWNERDATA as it uses LVN_GETDISPINFO notifications
Jeff Latimer
lats at yless4u.com.au
Sat Jan 2 04:52:27 CST 2010
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.
More information about the wine-devel
mailing list