mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 13:34:53 +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
|
@ -1279,8 +1279,13 @@ void ME_EnsureVisible(ME_TextEditor *editor, ME_Cursor *pCursor)
|
||||||
ME_DisplayItem *pPara = pCursor->pPara;
|
ME_DisplayItem *pPara = pCursor->pPara;
|
||||||
int x, y, yheight;
|
int x, y, yheight;
|
||||||
|
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
if (!pRow || !pPara)
|
||||||
|
return;
|
||||||
|
#else
|
||||||
assert(pRow);
|
assert(pRow);
|
||||||
assert(pPara);
|
assert(pPara);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (editor->styleFlags & ES_AUTOHSCROLL)
|
if (editor->styleFlags & ES_AUTOHSCROLL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue