Module: wine Branch: master Commit: 3d8fd826e13e310dc118f20cd0591e9edc92a45d URL: http://source.winehq.org/git/wine.git/?a=commit;h=3d8fd826e13e310dc118f20cd0...
Author: Marcus Meissner marcus@jet.franken.de Date: Thu Jan 29 09:42:33 2009 +0100
riched20: Exit the loop instead of crashing (Coverity).
---
dlls/riched20/reader.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/riched20/reader.c b/dlls/riched20/reader.c index 7fc952b..295d6d8 100644 --- a/dlls/riched20/reader.c +++ b/dlls/riched20/reader.c @@ -1090,8 +1090,10 @@ static void ReadStyleSheet(RTF_Info *info) if (RTFCheckCM (info, rtfGroup, rtfEndGroup)) break; sp = New (RTFStyle); - if (sp == NULL) + if (sp == NULL) { ERR ( "%s: cannot allocate stylesheet entry\n", fn); + break; + } sp->rtfSName = NULL; sp->rtfSNum = -1; sp->rtfSType = rtfParStyle;