RICHED20: A couple of EM_STREAMOUT fixes

Phil Krylov phil at newstar.rinet.ru
Tue Jul 5 14:57:55 CDT 2005


ChangeLog:

Fixed another couple of EM_STREAMOUT bugs.

Patch:

Index: dlls/riched20/writer.c
===================================================================
RCS file: /home/wine/wine/dlls/riched20/writer.c,v
retrieving revision 1.8
diff -p -u -r1.8 writer.c
--- dlls/riched20/writer.c	5 Jul 2005 16:18:33 -0000	1.8
+++ dlls/riched20/writer.c	5 Jul 2005 18:50:59 -0000
@@ -33,6 +33,7 @@ ME_StreamOutInit(ME_TextEditor *editor, 
 {
   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, DWOR
     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);



More information about the wine-patches mailing list