[PATCH] [RichEdit]: add an assert to point out what we're expecting
Eric Pouech
eric.pouech at orange.fr
Sun Jun 29 02:16:36 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 95befbc..264afea 100644
--- a/dlls/riched20/paint.c
+++ b/dlls/riched20/paint.c
@@ -514,6 +514,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