RICHED20: Fixed a bug in RTF output

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

RICHED20: Fixed a bug in RTF output

Phil Krylov
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--;