From f78ce2f41b482d7457b8b05de2d56c768516284e Mon Sep 17 00:00:00 2001 From: Phil Krylov Date: Thu, 11 Aug 2005 10:30:41 +0000 Subject: [PATCH] Fixed a bug in EM_STREAMOUT RichEdit message handler which truncated some streamed text. --- dlls/riched20/writer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/riched20/writer.c b/dlls/riched20/writer.c index b9430790ba4..11d55a8917f 100644 --- a/dlls/riched20/writer.c +++ b/dlls/riched20/writer.c @@ -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;