Re: richedit: Null terminate streamed out rich text.
24 Apr
2009
24 Apr
'09
7:35 a.m.
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. Ciao Max
6079
Age (days ago)
6079
Last active (days ago)
0 comments
1 participants
participants (1)
-
Massimo Del Fedele