riched20: Check para before use in ME_PrevRun.
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
3f281a3baa
commit
ea7186348f
|
@ -97,7 +97,7 @@ BOOL ME_PrevRun(ME_DisplayItem **para, ME_DisplayItem **run, BOOL all_para)
|
|||
{
|
||||
if (p->type == diParagraph) {
|
||||
if (!all_para) return FALSE;
|
||||
if (p->member.para.prev_para->type == diParagraph)
|
||||
if (para && p->member.para.prev_para->type == diParagraph)
|
||||
*para = p->member.para.prev_para;
|
||||
} else if (p->type == diRun) {
|
||||
*run = p;
|
||||
|
|
Loading…
Reference in New Issue