[CMD] Quick fix for the REM command parser. CORE-17030
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Mon, 11 May 2020 02:22:58 +0000 (04:22 +0200)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Mon, 11 May 2020 02:27:12 +0000 (04:27 +0200)
base/shell/cmd/parser.c

index cdea54a..abf2353 100644 (file)
@@ -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;
 }