From 78df6635f5b3afbbefe259a2b19e961e4fd8e666 Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Wed, 6 Jul 2005 19:13:24 +0000 Subject: [PATCH] set %errorlevel% for rem svn path=/trunk/; revision=16461 --- reactos/subsys/system/cmd/redir.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reactos/subsys/system/cmd/redir.c b/reactos/subsys/system/cmd/redir.c index 2aeae9bc6e9..3ada6d2bd3c 100644 --- a/reactos/subsys/system/cmd/redir.c +++ b/reactos/subsys/system/cmd/redir.c @@ -61,6 +61,7 @@ INT GetRedirection (LPTSTR s, LPTSTR ifn, LPTSTR ofn, LPTSTR efn, LPINT lpnFlags TCHAR * line = s; + while (_istspace (*line)) line++; @@ -71,8 +72,9 @@ INT GetRedirection (LPTSTR s, LPTSTR ifn, LPTSTR ofn, LPTSTR efn, LPINT lpnFlags *ifn=('\0'); *ofn=('\0'); *efn=_T('\0'); + nErrorLevel = 9009; return 1; - } + } #endif /* find and remove all the redirections first */ while (*sp)