Commit 9eb4c73a authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

riched20: Handle cp NULL more gracefully (Coverity).

parent 3d8fd826
......@@ -1044,8 +1044,10 @@ static void ReadColorTbl(RTF_Info *info)
}
cp = New (RTFColor);
if (cp == NULL)
if (cp == NULL) {
ERR ( "%s: cannot allocate color entry\n", fn);
break;
}
cp->rtfCNum = cnum++;
cp->rtfCRed = cp->rtfCGreen = cp->rtfCBlue = -1;
cp->rtfNextColor = info->colorList;
......
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