Fixed an off-by-one error in EM_STREAMOUT handler for non-Unicode
plain text output.
This commit is contained in:
parent
8d43d251b7
commit
42f3e22740
|
@ -759,7 +759,7 @@ ME_StreamOutText(ME_TextEditor *editor, int nStart, int nChars, DWORD dwFormat)
|
||||||
}
|
}
|
||||||
WideCharToMultiByte(nCodePage, 0, item->member.run.strText->szData + nStart,
|
WideCharToMultiByte(nCodePage, 0, item->member.run.strText->szData + nStart,
|
||||||
nLen, buffer, nSize, NULL, NULL);
|
nLen, buffer, nSize, NULL, NULL);
|
||||||
success = ME_StreamOutMove(editor, buffer, nSize - 1);
|
success = ME_StreamOutMove(editor, buffer, nSize);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue