Fixed encoding of non-ASCII chars.

oldstable
Phil Krylov 2005-10-11 19:56:03 +00:00 committed by Alexandre Julliard
parent 007c73c7ce
commit be2525b440
1 changed files with 1 additions and 1 deletions

View File

@ -616,7 +616,7 @@ ME_StreamOutRTFText(ME_TextEditor *editor, WCHAR *text, LONG nChars)
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--;