mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 22:50:43 +00:00
riched20: Exit the loop instead of crashing (Coverity).
This commit is contained in:
parent
4662271afd
commit
3d8fd826e1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user