mirror of
https://github.com/reactos/reactos.git
synced 2026-05-23 07:40:09 +08:00
[RICHED20] Fail elegantly if pRow or pPara is NULL on ME_EnsureVisible (#4126)
CORE-16578
This commit is contained in:
committed by
GitHub
parent
2693a26e3e
commit
915569a8de
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user