Commit 096c1ae4 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

We need to give room for the null termination when translating the

clipboard text.
parent 45e6f624
......@@ -613,9 +613,9 @@ static LPWINE_CLIPFORMAT CLIPBOARD_RenderText( UINT wFormat )
/* Text always NULL terminated */
if(lpSource->wFormatID == CF_UNICODETEXT)
src_chars = strlenW((LPCWSTR)lpstrS);
src_chars = strlenW((LPCWSTR)lpstrS)+1;
else
src_chars = strlen(lpstrS);
src_chars = strlen(lpstrS)+1;
/* Calculate number of characters in the destination buffer */
dst_chars = CLIPBOARD_ConvertText(lpSource->wFormatID, lpstrS, src_chars,
......
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