Commit 3e274360 authored by Matt Finnicum's avatar Matt Finnicum Committed by Alexandre Julliard

riched20: EM_EXLIMITTEXT: ignore wParam and properly cast lParam.

parent 807546ee
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment