winhlp32: Properly handle a syntax error inside a macro.

This commit is contained in:
Eric Pouech 2009-05-30 14:26:21 +02:00 committed by Alexandre Julliard
parent 6f05770fbf
commit b936855d07
1 changed files with 4 additions and 2 deletions

View File

@ -293,13 +293,15 @@ BOOL MACRO_ExecuteMacro(LPCSTR macro)
break;
default:
WINE_WARN("got unexpected type %s\n", ts(t));
return 0;
YY_FLUSH_BUFFER;
ret = FALSE;
goto done;
}
switch (t = yylex())
{
case EMPTY: goto done;
case ';': break;
default: ret = FALSE; goto done;
default: ret = FALSE; YY_FLUSH_BUFFER; goto done;
}
}