mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
[0.4.9][CMD] Quick fix for the REM command parser. CORE-17030
This avoids spamming "Syntax Errors" to the cmd-prompt when starting the VS2010 command prompt.
Or when typing something like "@Rem Hello" at the prompt.
Fix picked from 0.4.15-dev-202-g 9c11be5a3a
This commit is contained in:
parent
d328046de5
commit
4c35cd179c
1 changed files with 4 additions and 3 deletions
|
@ -547,9 +547,10 @@ error:
|
|||
/* Parse a REM command */
|
||||
static PARSED_COMMAND *ParseRem(void)
|
||||
{
|
||||
/* Just ignore the rest of the line */
|
||||
while (CurChar && CurChar != _T('\n'))
|
||||
ParseChar();
|
||||
/* "Ignore" the rest of the line.
|
||||
* (Line continuations will still be parsed, though.) */
|
||||
while (ParseToken(0, NULL) != TOK_END)
|
||||
;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue