https://git.reactos.org/?p=reactos.git;a=commitdiff;h=9871becced0b05812b3c7…
commit 9871becced0b05812b3c750c2aa43fe4a20a2985
Author:     Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Sun Jul 12 00:03:23 2020 +0200
Commit:     Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Wed Aug 19 20:36:08 2020 +0200
    [CMD] It is not the job of ErrorMessage() to set the errorlevel! It is set only by the
commands that want it.
---
 base/shell/cmd/error.c | 2 --
 1 file changed, 2 deletions(-)
diff --git a/base/shell/cmd/error.c b/base/shell/cmd/error.c
index be422f33cf4..6995f188d89 100644
--- a/base/shell/cmd/error.c
+++ b/base/shell/cmd/error.c
@@ -36,8 +36,6 @@ ErrorMessage(
     if (dwErrorCode == ERROR_SUCCESS)
         return;
-    nErrorLevel = 1;
-
     *szMessage = 0;
     if (szFormat)
     {