mirror of
https://github.com/reactos/wine.git
synced 2025-02-16 02:50:29 +00:00
Removed buffer overrun error (incrementing output pointer one time too
much in non-CRLF mode) making KeyNote fail to install.
This commit is contained in:
parent
0fbf69fcf8
commit
8978549722
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user