mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[RICHED20] Fail elegantly if pRow or pPara is NULL on ME_EnsureVisible (#4126)
CORE-16578
This commit is contained in:
parent
2693a26e3e
commit
915569a8de
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue