Commit 89785497 authored by Krzysztof Foltman's avatar Krzysztof Foltman Committed by Alexandre Julliard

Removed buffer overrun error (incrementing output pointer one time too

much in non-CRLF mode) making KeyNote fail to install.
parent 0fbf69fc
......@@ -2068,10 +2068,10 @@ int ME_GetTextW(ME_TextEditor *editor, WCHAR *buffer, int nStart, int nChars, in
if (item->member.run.nFlags & MERF_ENDPARA)
{
*buffer++ = '\r';
*buffer = '\r';
if (bCRLF)
{
*buffer = '\n';
*(++buffer) = '\n';
nWritten++;
}
assert(nLen == 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment