From ea7186348f48a749ab28ecc405fb56601c56e4f8 Mon Sep 17 00:00:00 2001 From: Jactry Zeng Date: Fri, 13 Apr 2018 15:56:44 +0800 Subject: [PATCH] riched20: Check para before use in ME_PrevRun. Signed-off-by: Jactry Zeng Signed-off-by: Huw Davies Signed-off-by: Alexandre Julliard --- dlls/riched20/list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/riched20/list.c b/dlls/riched20/list.c index 58b64e8081d..8c4f0dec0a2 100644 --- a/dlls/riched20/list.c +++ b/dlls/riched20/list.c @@ -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;