mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
richedit: Fix unicode truncation on EM_GETLINE message.
This commit is contained in:
parent
91421f0f02
commit
7a54306008
@ -3558,7 +3558,7 @@ LRESULT ME_HandleMessage(ME_TextEditor *editor, UINT msg, WPARAM wParam,
|
||||
nCopy = min(nCharsLeft, strText->nLen);
|
||||
|
||||
if (unicode)
|
||||
lstrcpynW((LPWSTR) dest, strText->szData, nCopy);
|
||||
memcpy(dest, strText->szData, nCopy * sizeof(WCHAR));
|
||||
else
|
||||
nCopy = WideCharToMultiByte(CP_ACP, 0, strText->szData, nCopy, dest,
|
||||
nCharsLeft, NULL, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user