richedit: Prevented NULL value from being used to avoid a page fault.
This commit is contained in:
parent
6c2026a348
commit
1840a5bcad
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user