Commit 42f3e227 authored by Phil Krylov's avatar Phil Krylov Committed by Alexandre Julliard

Fixed an off-by-one error in EM_STREAMOUT handler for non-Unicode

plain text output.
parent 8d43d251
......@@ -759,7 +759,7 @@ ME_StreamOutText(ME_TextEditor *editor, int nStart, int nChars, DWORD dwFormat)
}
WideCharToMultiByte(nCodePage, 0, item->member.run.strText->szData + nStart,
nLen, buffer, nSize, NULL, NULL);
success = ME_StreamOutMove(editor, buffer, nSize - 1);
success = ME_StreamOutMove(editor, buffer, nSize);
}
}
......
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