Commit a49aa4c2 authored by Evan Deaubl's avatar Evan Deaubl Committed by Alexandre Julliard

Stop processing input stream when the outermost RTF group is closed.

parent c1585509
......@@ -540,10 +540,20 @@ RTFFont *fp;
info->csStack[info->csTop++] = info->curCharSet;
break;
case rtfEndGroup:
/*
* If stack top is 1 at this point, we are ending the
* group started by the initial {, which ends the
* RTF stream
*/
if (info->csTop <= 0)
RTFPanic (info,"_RTFGetToken: stack underflow");
info->curCharSet = info->csStack[--info->csTop];
RTFSetCharSet (info, info->curCharSet);
else if (info->csTop == 1)
info->rtfClass = rtfEOF;
else
{
info->curCharSet = info->csStack[--info->csTop];
RTFSetCharSet (info, info->curCharSet);
}
break;
}
}
......
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