RICHED20: fix for KeyNote regression
Krzysztof Foltman
wdev at foltman.com
Mon Oct 10 13:30:52 CDT 2005
ChangeLog:
* Removed buffer overrun error (incrementing output pointer one time
too much in non-CRLF mode) making KeyNote fail to install
Krzysztof
-------------- next part --------------
Index: editor.c
===================================================================
RCS file: /home/wine/wine/dlls/riched20/editor.c,v
retrieving revision 1.59
diff -u -r1.59 editor.c
--- editor.c 3 Oct 2005 18:45:39 -0000 1.59
+++ editor.c 9 Oct 2005 15:00:34 -0000
@@ -2062,10 +2075,10 @@
if (item->member.run.nFlags & MERF_ENDPARA)
{
- *buffer++ = '\r';
+ *buffer = '\r';
if (bCRLF)
{
- *buffer = '\n';
+ *(++buffer) = '\n';
nWritten++;
}
assert(nLen == 1);
More information about the wine-patches
mailing list