Commit 617d14bc authored by Florian Eder's avatar Florian Eder Committed by Alexandre Julliard

cmd: Do not change errorlevel when setting environment variables.

Changes CMD to set its errorlevel to 0 only when the value of an environment variable is set in in non-interactive / batch mode, retains the previous value otherwise. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47791Signed-off-by: 's avatarFlorian Eder <others.meder@gmail.com> Signed-off-by: 's avatarZebediah Figura <zfigura@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 9c818c96
......@@ -4218,7 +4218,7 @@ void WCMD_setshow_env (WCHAR *s) {
if ((!status) & (gle == ERROR_ENVVAR_NOT_FOUND)) {
errorlevel = 1;
} else if (!status) WCMD_print_error();
else errorlevel = 0;
else if (!interactive) errorlevel = 0;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment