[RICHED20] Fail elegantly if pRow or pPara is NULL on ME_EnsureVisible (#4126)

CORE-16578
This commit is contained in:
Katayama Hirofumi MZ 2021-11-28 22:23:04 +09:00 committed by GitHub
parent 2693a26e3e
commit 915569a8de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1279,8 +1279,13 @@ void ME_EnsureVisible(ME_TextEditor *editor, ME_Cursor *pCursor)
ME_DisplayItem *pPara = pCursor->pPara;
int x, y, yheight;
#ifdef __REACTOS__
if (!pRow || !pPara)
return;
#else
assert(pRow);
assert(pPara);
#endif
if (editor->styleFlags & ES_AUTOHSCROLL)
{