richedit: Null terminate streamed out rich text.

Massimo Del Fedele max at
Fri Apr 24 02:35:43 CDT 2009

Dylan Smith ha scritto:
> This can easily be tested by saving a rich text document in wordpad. The
> rich text will always be null terminated, unlike plain text files which
> will not have a terminating null byte.
> I noticed in a bug 14827 that AutoCAD 2005 looked for this NULL byte to
> determine the length of the rich text in its EditStreamCallback function
> given to EM_STREAMOUT, instead of using the cb parameter that provides
> the length.
> ---
>  dlls/riched20/writer.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> ------------------------------------------------------------------------
The patch is right (IMHO) but AutoCAD bug 14827 is still present, I guess
it's another issue probably related to \fonttbl streaming out.



More information about the wine-devel mailing list