cmd: A successful set should reset the errorlevel.

This commit is contained in:
Jason Edmeades 2012-09-05 23:41:48 +01:00 committed by Alexandre Julliard
parent b9550ad352
commit f9b4c78a89
2 changed files with 4 additions and 3 deletions

View File

@ -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;
}
}

View File

@ -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