https://git.reactos.org/?p=reactos.git;a=commitdiff;h=9c11be5a3a95a35604f73062719431cf6df1ffb6

commit 9c11be5a3a95a35604f73062719431cf6df1ffb6
Author:     Hermès Bélusca-Maïto <hermes.belusca-ma...@reactos.org>
AuthorDate: Mon May 11 04:22:58 2020 +0200
Commit:     Hermès Bélusca-Maïto <hermes.belusca-ma...@reactos.org>
CommitDate: Mon May 11 04:27:12 2020 +0200

    [CMD] Quick fix for the REM command parser. CORE-17030
---
 base/shell/cmd/parser.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/base/shell/cmd/parser.c b/base/shell/cmd/parser.c
index cdea54a8f08..abf2353d563 100644
--- a/base/shell/cmd/parser.c
+++ b/base/shell/cmd/parser.c
@@ -575,9 +575,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;
 }
 

Reply via email to