Commit 9eda99c0 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

riched20: Don't crash if a colour isn't found.

parent 8b9ad4d3
......@@ -377,7 +377,10 @@ static void ME_RTFCharAttrHook(RTF_Info *info)
else if (info->rtfParam != rtfNoParam)
{
RTFColor *c = RTFGetColor(info, info->rtfParam);
fmt.crTextColor = (c->rtfCBlue<<16)|(c->rtfCGreen<<8)|(c->rtfCRed);
if (c)
fmt.crTextColor = (c->rtfCBlue<<16)|(c->rtfCGreen<<8)|(c->rtfCRed);
else
fmt.crTextColor = 0;
}
break;
case rtfFontNum:
......
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