Commit 1d9bb502 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

wpp: Reset lexer state after unexpected end of file.

parent 2c5a7743
......@@ -774,7 +774,10 @@ void pp_writestring(const char *format, ...)
if(!bep)
{
if(YY_START != INITIAL)
{
ppy_error("Unexpected end of file during preprocessing");
BEGIN(INITIAL);
}
yyterminate();
}
else if(bep->should_pop == 2)
......
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