Jactry Zeng : riched20: Check para before use in ME_PrevRun.
Module: wine Branch: master Commit: ea7186348f48a749ab28ecc405fb56601c56e4f8 URL: https://source.winehq.org/git/wine.git/?a=commit;h=ea7186348f48a749ab28ecc40... Author: Jactry Zeng <jzeng(a)codeweavers.com> Date: Fri Apr 13 15:56:44 2018 +0800 riched20: Check para before use in ME_PrevRun. Signed-off-by: Jactry Zeng <jzeng(a)codeweavers.com> Signed-off-by: Huw Davies <huw(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- 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 58b64e8..8c4f0de 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;
participants (1)
-
Alexandre Julliard