richedit: Fixed EM_FINDTEXT to pass todo tests.
authorDylan Smith <dylan.ah.smith@gmail.com>
Mon, 2 Feb 2009 06:32:36 +0000 (01:32 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 2 Feb 2009 14:21:45 +0000 (15:21 +0100)
commit95d82484e19ce2da3928798bc29216d3f3856e3c
treea5eac44abe80e5f9ae62980267479e47e60060b0
parent8662c6fe7b60d9ff563ba790d4431ef30250249b
richedit: Fixed EM_FINDTEXT to pass todo tests.

There was a bug in ME_FindText which would cause the final caracter
offset to be incorrect when a paragraph was crossed while matching
characters.  The problem was the character offset of the wrong
paragraph was used in the calculation of the start offset of the
match.
dlls/riched20/editor.c
dlls/riched32/tests/editor.c