Commit 4ba690e6 authored by Brad Campbell's avatar Brad Campbell Committed by Alexandre Julliard

EM_REPLACESTR was not respecting buffer_limit.

parent 390a0bff
......@@ -1699,14 +1699,14 @@ static BOOL EDIT_MakeFit(EDITSTATE *es, UINT size, BOOL honor_limit)
{
HLOCAL hNew32W;
if (size <= es->buffer_size)
return TRUE;
if ((honor_limit) && (es->buffer_limit > 0) && (size > es->buffer_limit)) {
EDIT_NOTIFY_PARENT(es, EN_MAXTEXT, "EN_MAXTEXT");
return FALSE;
}
if (size <= es->buffer_size)
return TRUE;
TRACE("trying to ReAlloc to %d+1 characters\n", size);
/* Force edit to unlock it's buffer. es->text now NULL */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment