Sweden-Number/dlls/riched20/tests
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
..
Makefile.in riched20/tests: Added ITextServices::TxSetText test. 2009-01-12 16:53:18 +01:00
editor.c richedit: Add bounds checks for EM_GETTEXTRANGE with tests. 2009-03-23 13:26:28 +01:00
richole.c tests: Don't depend on the static uuid libraries in the tests. 2008-07-08 17:51:45 +02:00
txtsrv.c riched20/tests: Make test_TxGetNaturalSize() static. 2009-01-22 12:04:04 +01:00