RICHED20: Fixed a bug in RTF output

Phil Krylov phil at newstar.rinet.ru
Tue Oct 11 12:45:49 CDT 2005


Hi,

ChangeLog:

Fixed bug 3549.

Patch:

Index: dlls/riched20/writer.c
===================================================================
RCS file: /home/wine/wine/dlls/riched20/writer.c,v
retrieving revision 1.15
diff -p -u -r1.15 writer.c
--- dlls/riched20/writer.c	12 Sep 2005 21:18:29 -0000	1.15
+++ dlls/riched20/writer.c	11 Oct 2005 17:16:54 -0000
@@ -616,7 +616,7 @@ ME_StreamOutRTFText(ME_TextEditor *edito
         buffer[pos++] = *letter;
       } else {
          for (i = 0; i < nBytes; i++)
-           pos += sprintf(buffer + pos, "\\'%02x", letter[i]);
+           pos += sprintf(buffer + pos, "\\'%02x", (BYTE)letter[i]);
       }
       text++;
       nChars--;



More information about the wine-patches mailing list