Sweden-Number/dlls/riched20
Dylan Smith caca486029 richedit: Add bounds checks for EM_GETTEXTRANGE with tests.
Wine was not doing bounds checks for EM_GETTEXTRANGE, which was causing
a crash in Bug 17822.  The added tests would cause a crash without the
added bounds checks in the richedit code.

The bounds checks I put in HandleMessage, since ME_GetTextRange is also
called for ME_GETSELTEXT which should not have bounds checks, since it
uses the selection range.

When the ME_GETTEXTRANGE message returns 0, no text is copied, not even
the NULL terminating charter.  This differs from EM_GETSELTEXT which
will copy the NULL terminating character when no text is selected.  This
behaviour is consistent with native richedit controls.
2009-03-23 13:26:28 +01:00
..
tests richedit: Add bounds checks for EM_GETTEXTRANGE with tests. 2009-03-23 13:26:28 +01:00
Makefile.in
caret.c richedit: Store paragraph in cursors. 2009-02-10 12:59:09 +01:00
clipboard.c
context.c
editor.c richedit: Add bounds checks for EM_GETTEXTRANGE with tests. 2009-03-23 13:26:28 +01:00
editor.h riched20: Remove unused functions. 2009-02-09 13:21:21 +01:00
editstr.h richedit: Removed unused ME_Document structure. 2009-02-17 12:46:56 +01:00
list.c riched20: Remove unused functions. 2009-02-09 13:21:21 +01:00
ocr_reverse.cur
paint.c richedit: Fixed scrollbar visiblility calculation after SetScrollInfo. 2009-02-24 16:57:28 +01:00
para.c richedit: Store paragraph in cursors. 2009-02-10 12:59:09 +01:00
reader.c
res.h
riched20.spec
richole.c include: Change long to LONG in tom.idl. 2009-03-10 12:06:10 +01:00
row.c riched20: Remove unused functions. 2009-02-09 13:21:21 +01:00
rtf.h
run.c richedit: Store paragraph in cursors. 2009-02-10 12:59:09 +01:00
string.c
style.c riched20: Remove unused functions. 2009-02-09 13:21:21 +01:00
table.c richedit: Store paragraph in cursors. 2009-02-10 12:59:09 +01:00
txthost.c richedit: Avoid calling ITextHost_TxNotify with EN_MSGFILTER. 2009-03-06 12:49:04 +01:00
txtsrv.c richedit: Avoid crashing if TxSendMessage is called with NULL plresult. 2009-02-26 15:13:25 +01:00
undo.c richedit: Store paragraph in cursors. 2009-02-10 12:59:09 +01:00
version.rc
wrap.c richedit: Count graphics towards line width. 2009-03-11 13:03:30 +01:00
writer.c