[PATCH] [RichEdit]: add an assert to point out what we're expecting

Eric Pouech eric.pouech at orange.fr
Sat Jul 12 03:36:21 CDT 2008


In hope to make coverity happier CID #700

A+
---

 dlls/riched20/paint.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)


diff --git a/dlls/riched20/paint.c b/dlls/riched20/paint.c
index c2e8b06..a6e86b3 100644
--- a/dlls/riched20/paint.c
+++ b/dlls/riched20/paint.c
@@ -656,6 +656,8 @@ void ME_DrawParagraph(ME_Context *c, ME_DisplayItem *paragraph) {
         y += bounds.top;
         break;
       case diStartRow:
+        /* we should have seen a diParagraph before */
+        assert(para);
         y += height;
         rcPara.top = y;
         rcPara.bottom = y+p->member.row.nHeight;





More information about the wine-patches mailing list