richedit: ME_GetTextW must use source and destination lengths.
commit82e102107c8a03566032f15f1f4d173c0850a9aa
authorDylan Smith <dylan.ah.smith@gmail.com>
Wed, 12 Aug 2009 13:05:51 +0000 (12 09:05 -0400)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 12 Aug 2009 15:32:16 +0000 (12 17:32 +0200)
tree2871accca00ce222a1ce2e42be5db5b21461ee81
parent46b84aed4a27883984613a6dac7e6f35a2981778
richedit: ME_GetTextW must use source and destination lengths.

Before a single length was used for the number of characters to retrieve
from the text, and to keep track of the size of the buffer.  These are
not equivalent, since there is a possible end of line conversion.
dlls/riched20/clipboard.c
dlls/riched20/editor.c
dlls/riched20/editor.h
dlls/riched20/editstr.h
dlls/riched20/table.c
dlls/riched20/txtsrv.c