diff --git a/dll/win32/riched20/paint.c b/dll/win32/riched20/paint.c index 7212807238..2b0e91dddf 100644 --- a/dll/win32/riched20/paint.c +++ b/dll/win32/riched20/paint.c @@ -1279,6 +1279,9 @@ void ME_EnsureVisible(ME_TextEditor *editor, ME_Cursor *pCursor) ME_DisplayItem *pPara = pCursor->pPara; int x, y, yheight; +#ifdef __REACTOS__ + if (!pRow || !pPara) return; +#endif assert(pRow); assert(pPara);