richedit: Fixed EM_POSFROMCHAR for pos of text length.
authorDylan Smith <dylan.ah.smith@gmail.com>
Wed, 22 Oct 2008 06:22:41 +0000 (02:22 -0400)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 22 Oct 2008 11:54:54 +0000 (13:54 +0200)
commit46d79b0363494426d1c41cb1eccd88f0926d83b3
treee70e3a7c778f09e5a664c2823e3745cccc6dbe45
parent31951a099da7adc494a931ba29633dca8a97a144
richedit: Fixed EM_POSFROMCHAR for pos of text length.

For some reason EM_POSFROMCHAR was returning 0 when the position was
equal to the end of the text, or beyond the end of the text. Instead
it should use the position at the end of the text for both these
cases.  The x value was also seen to be offset by 1 according to the
tests.
dlls/riched20/editor.c
dlls/riched20/tests/editor.c
dlls/riched32/tests/editor.c