From 9871becced0b05812b3c750c2aa43fe4a20a2985 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Sun, 12 Jul 2020 00:03:23 +0200 Subject: [PATCH] [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) {