riched20: EM_EXLIMITTEXT: ignore wParam and properly cast lParam
Matt Finnicum
mattfinn at gmail.com
Mon Nov 27 23:56:25 CST 2006
Oops. And include the patch with the e-mail.
On 11/27/06, Matt Finnicum <mattfinn at gmail.com> wrote:
> I tested native, and regardless of what MSDN says, wParam really is
> unused and should be ignored. Also, lParam should be casted before
> it's tested as it's supposed to be a signed value.
>
> --Matt Finnicum
>
> Changelog:
> EM_EXLIMITTEXT: ignore wParam and properly cast lParam before testing it
>
> ---
> dlls/riched20/editor.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
-------------- next part --------------
diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
index 779a6bc..c2000f8 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -2196,7 +2196,7 @@ LRESULT WINAPI RichEditANSIWndProc(HWND
}
case EM_EXLIMITTEXT:
{
- if (wParam != 0 || lParam < 0)
+ if ((int)lParam < 0)
return 0;
if (lParam == 0)
editor->nTextLimit = 65536;
--
1.4.4.1
More information about the wine-patches
mailing list