cmd: 'del' should set %errorlevel% to zero, not one, on error
Hugh McMaster
hugh.mcmaster at outlook.com
Sun Nov 15 19:28:18 CST 2015
The DWORD errorlevel is set to zero a few lines higher
than what is shown in this diff.
Fixes bug 35970 - https://bugs.winehq.org/show_bug.cgi?id=35970
Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
---
programs/cmd/builtins.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/programs/cmd/builtins.c b/programs/cmd/builtins.c
index e9b9ddd..d8db12e 100644
--- a/programs/cmd/builtins.c
+++ b/programs/cmd/builtins.c
@@ -1409,10 +1409,8 @@ BOOL WCMD_delete (WCHAR *args) {
argsProcessed = TRUE;
found = WCMD_delete_one(thisArg);
- if (!found) {
- errorlevel = 1;
+ if (!found)
WCMD_output_stderr(WCMD_LoadMessage(WCMD_FILENOTFOUND), thisArg);
- }
foundAny |= found;
}
--
1.9.1
More information about the wine-patches
mailing list