richedit: Null terminate streamed out rich text.

This commit is contained in:
Dylan Smith 2009-04-24 03:25:46 -04:00 committed by Alexandre Julliard
parent 9b56e5013e
commit 234f167d9d
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}