From 69a27f457a0905e2aa0cdca30d35b4ffd80007a7 Mon Sep 17 00:00:00 2001 From: Phil Krylov Date: Tue, 5 Jul 2005 20:56:07 +0000 Subject: [PATCH] Fixed another couple of EM_STREAMOUT bugs. --- dlls/riched20/writer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/riched20/writer.c b/dlls/riched20/writer.c index ca55676b6c1..837285c323e 100644 --- a/dlls/riched20/writer.c +++ b/dlls/riched20/writer.c @@ -33,6 +33,7 @@ ME_StreamOutInit(ME_TextEditor *editor, EDITSTREAM *stream) { editor->pStream = ALLOC_OBJ(ME_OutStream); editor->pStream->stream = stream; + editor->pStream->stream->dwError = 0; editor->pStream->pos = 0; editor->pStream->written = 0; editor->pStream->nFontTblLen = 0; @@ -790,7 +791,7 @@ ME_StreamOut(ME_TextEditor *editor, DWORD dwFormat, EDITSTREAM *stream) nTo = ME_GetTextLength(editor); TRACE("from %d to %d\n", nStart, nTo); - if (dwFormat & SF_RTF || dwFormat & SF_RTFNOOBJS) + if (dwFormat & SF_RTF) ME_StreamOutRTF(editor, nStart, nTo - nStart, dwFormat); else if (dwFormat & SF_TEXT || dwFormat & SF_TEXTIZED) ME_StreamOutText(editor, nStart, nTo - nStart, dwFormat);