Jactry Zeng : riched20: Check para before use in ME_PrevRun.

Alexandre Julliard julliard at winehq.org
Mon Apr 16 15:26:25 CDT 2018


Module: wine
Branch: master
Commit: ea7186348f48a749ab28ecc405fb56601c56e4f8
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=ea7186348f48a749ab28ecc405fb56601c56e4f8

Author: Jactry Zeng <jzeng at 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 at codeweavers.com>
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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;




More information about the wine-cvs mailing list