Carl Sopchak a écrit:
The following code is in the EDIT_MakeFit() function:
if ((es->buffer_limit > 0) && (size > es->buffer_limit)) { EDIT_NOTIFY_PARENT(es, EN_MAXTEXT, "EN_MAXTEXT"); return FALSE; } if ((es->buffer_limit > 0) && (size > es->buffer_limit)) size = es->buffer_limit;
Obviously, the second IF condition is never true, since it's the same as the prior IF, which does a 'return FALSE'.
See http://cvs.winehq.org/cvsweb/wine/controls/edit.c.diff?r1=1.56&r2=1.57 for the a removed line between the two blocks (search for line 1451). The rest of the patch was to convert edit to Unicode; I don't know why this line was removed. Check also for ROUND_TO_GROW.
Vincent