From 234f167d9d5c4274ff4f4fdaa0ed8e30db0e4e10 Mon Sep 17 00:00:00 2001 From: Dylan Smith Date: Fri, 24 Apr 2009 03:25:46 -0400 Subject: [PATCH] richedit: Null terminate streamed out rich text. --- dlls/riched20/writer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/riched20/writer.c b/dlls/riched20/writer.c index d1d99902761..b6c3ed6e8e2 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; } -- 2.11.4.GIT