Fixed a bug in EM_STREAMOUT RichEdit message handler which truncated

some streamed text.
This commit is contained in:
Phil Krylov 2005-08-11 10:30:41 +00:00 committed by Alexandre Julliard
parent d8bf6e8aa4
commit f78ce2f41b
1 changed files with 1 additions and 1 deletions

View File

@ -588,7 +588,7 @@ ME_StreamOutRTFText(ME_TextEditor *editor, WCHAR *text, LONG nChars)
return FALSE;
pos = i;
}
if (!pos)
if (pos < nBytes)
if (!ME_StreamOutMove(editor, buffer + pos, nBytes - pos))
return FALSE;
pos = 0;