riched20: EM_EXLIMITTEXT: ignore wParam and properly cast lParam.

This commit is contained in:
Matt Finnicum 2006-11-27 23:56:25 -06:00 committed by Alexandre Julliard
parent 807546ee59
commit 3e27436003
1 changed files with 1 additions and 1 deletions

View File

@ -2196,7 +2196,7 @@ LRESULT WINAPI RichEditANSIWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lP
}
case EM_EXLIMITTEXT:
{
if (wParam != 0 || lParam < 0)
if ((int)lParam < 0)
return 0;
if (lParam == 0)
editor->nTextLimit = 65536;