riched20: EM_EXLIMITTEXT: ignore wParam and properly cast lParam.
This commit is contained in:
parent
807546ee59
commit
3e27436003
@ -2196,7 +2196,7 @@ LRESULT WINAPI RichEditANSIWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lP
|
|||||||
}
|
}
|
||||||
case EM_EXLIMITTEXT:
|
case EM_EXLIMITTEXT:
|
||||||
{
|
{
|
||||||
if (wParam != 0 || lParam < 0)
|
if ((int)lParam < 0)
|
||||||
return 0;
|
return 0;
|
||||||
if (lParam == 0)
|
if (lParam == 0)
|
||||||
editor->nTextLimit = 65536;
|
editor->nTextLimit = 65536;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user