Commit 3d8fd826 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

riched20: Exit the loop instead of crashing (Coverity).

parent 4662271a
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment