From 50aaff9bd3f9d88f7bba07bb46062a488cb351ae Mon Sep 17 00:00:00 2001 From: Brandon Turner Date: Fri, 16 Sep 2005 13:58:37 +0000 Subject: [PATCH] Set errorlevel to 0 when user enters 'no' on del confirmation. this is how MS does it. svn path=/trunk/; revision=17878 --- reactos/subsys/system/cmd/del.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/subsys/system/cmd/del.c b/reactos/subsys/system/cmd/del.c index e1e32ad61d9..9fd64892ec0 100644 --- a/reactos/subsys/system/cmd/del.c +++ b/reactos/subsys/system/cmd/del.c @@ -264,7 +264,8 @@ DeleteFiles(LPTSTR FileName, DWORD* dwFlags, DWORD dwAttrFlags) if ((res == PROMPT_NO) || (res == PROMPT_BREAK)) { - continue; //FIXME: Errorcode? + nErrorLevel = 0; + continue; } }