Eric Pouech : winhlp32: Properly handle a syntax error inside a macro.
Module: wine Branch: master Commit: b936855d0765b3f1565e8a698b4a3b03924e7371 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b936855d0765b3f1565e8a698b... Author: Eric Pouech <eric.pouech(a)orange.fr> Date: Sat May 30 14:26:21 2009 +0200 winhlp32: Properly handle a syntax error inside a macro. --- programs/winhlp32/macro.lex.l | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/programs/winhlp32/macro.lex.l b/programs/winhlp32/macro.lex.l index f3366b0..4442473 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; } }
participants (1)
-
Alexandre Julliard