From b936855d0765b3f1565e8a698b4a3b03924e7371 Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Sat, 30 May 2009 14:26:21 +0200 Subject: [PATCH] winhlp32: Properly handle a syntax error inside a macro. --- programs/winhlp32/macro.lex.l | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/programs/winhlp32/macro.lex.l b/programs/winhlp32/macro.lex.l index f3366b02bbd..44424734480 100644 --- a/programs/winhlp32/macro.lex.l +++ b/programs/winhlp32/macro.lex.l @@ -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; } }