[RICHED20] Fail elegantly if pRow or pPara is NULL on ME_EnsureVisible (#4126)
authorKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Sun, 28 Nov 2021 13:23:04 +0000 (22:23 +0900)
committerGitHub <noreply@github.com>
Sun, 28 Nov 2021 13:23:04 +0000 (22:23 +0900)
CORE-16578

dll/win32/riched20/paint.c

index 7212807..05be17e 100644 (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)
   {