Module: wine Branch: master Commit: 1840a5bcadc93aa5bdf8f4b5130aca21e6fd0f04 URL: http://source.winehq.org/git/wine.git/?a=commit;h=1840a5bcadc93aa5bdf8f4b513...
Author: Dylan Smith dylan.ah.smith@gmail.com Date: Wed Jun 25 11:33:06 2008 -0400
richedit: Prevented NULL value from being used to avoid a page fault.
---
dlls/riched20/para.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/riched20/para.c b/dlls/riched20/para.c index 8380a79..d6a06d3 100644 --- a/dlls/riched20/para.c +++ b/dlls/riched20/para.c @@ -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;