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

plain text output.
This commit is contained in:
Phil Krylov 2005-07-22 18:27:15 +00:00 committed by Alexandre Julliard
parent 8d43d251b7
commit 42f3e22740
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}