richedit: Return correct values when EM_SETTEXTMODE fails.
commit75eef418817912bf34a94f13e7195ce3bf02373d
authorDylan Smith <dylan.ah.smith@gmail.com>
Thu, 29 Jul 2010 18:02:32 +0000 (29 14:02 -0400)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 30 Jul 2010 09:36:01 +0000 (30 11:36 +0200)
treea11510de2c643506bb36aba3a037a595067b9112
parent428e8a5a01579f8b5190d47d699a9b4f8c21b149
richedit: Return correct values when EM_SETTEXTMODE fails.

The checks for the text length and invalid parameters needed to be swapped,
and the code could be easily simplified.
dlls/riched20/editor.c
dlls/riched20/tests/editor.c