Commit f9b4c78a authored by Jason Edmeades's avatar Jason Edmeades Committed by Alexandre Julliard

cmd: A successful set should reset the errorlevel.

parent b9550ad3
......@@ -2366,6 +2366,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;
}
}
......
......@@ -201,13 +201,13 @@ baz@space@
@todo_wine@0
------------ Testing 'set' ------------
1
@todo_wine@0
0
FOOBAR not defined
@todo_wine@ baz
FOOBAR = baz
@todo_wine@0
0
@todo_wine@ baz2
@todo_wine@0
0
bar
@todo_wine@FOOBAR= bar
@todo_wine@FOOBAR = baz2
......
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