richedit: Prevented NULL value from being used to avoid a page fault.

This commit is contained in:
Dylan Smith 2008-06-25 11:33:06 -04:00 committed by Alexandre Julliard
parent 6c2026a348
commit 1840a5bcad
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ void ME_MarkForWrapping(ME_TextEditor *editor, ME_DisplayItem *first, const ME_D
void ME_MarkForPainting(ME_TextEditor *editor, ME_DisplayItem *first, const ME_DisplayItem *last)
{
while(first != last)
while(first != last && first)
{
first->member.para.nFlags |= MEPF_REPAINT;
first = first->member.para.next_para;