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)