Dylan Smith : richedit: Null terminate streamed out rich text.
Module: wine Branch: master Commit: 234f167d9d5c4274ff4f4fdaa0ed8e30db0e4e10 URL: http://source.winehq.org/git/wine.git/?a=commit;h=234f167d9d5c4274ff4f4fdaa0... Author: Dylan Smith <dylan.ah.smith(a)gmail.com> Date: Fri Apr 24 03:25:46 2009 -0400 richedit: Null terminate streamed out rich text. --- dlls/riched20/writer.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/riched20/writer.c b/dlls/riched20/writer.c index d1d9990..b6c3ed6 100644 --- a/dlls/riched20/writer.c +++ b/dlls/riched20/writer.c @@ -904,7 +904,7 @@ ME_StreamOutRTF(ME_TextEditor *editor, ME_OutStream *pStream, int nStart, int nC break; p = ME_FindItemFwd(p, diRunOrParagraphOrEnd); } - if (!ME_StreamOutPrint(pStream, "}")) + if (!ME_StreamOutMove(pStream, "}\0", 2)) return FALSE; return TRUE; }
participants (1)
-
Alexandre Julliard