From fe2f78c54c8ab6da6ec3e606992ea24bee6c4e8d Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Sun, 10 Jul 2005 21:26:51 +0000 Subject: [PATCH] quick dirty hack getting our copy working with 1>null by me so we can create reactos iso on ros. bug reported by harteex and Brandon Turner, thanks to Brandon to hunt down where the bug was. svn path=/trunk/; revision=16526 --- reactos/subsys/system/cmd/copy.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/reactos/subsys/system/cmd/copy.c b/reactos/subsys/system/cmd/copy.c index 59d8ecbcbcc..b3492149f19 100644 --- a/reactos/subsys/system/cmd/copy.c +++ b/reactos/subsys/system/cmd/copy.c @@ -232,8 +232,23 @@ ParseCommand (LPFILES f, int argc, TCHAR **arg, LPDWORD lpdwFlags) source = 0; count = 0; - for (i = 0; i < argc; i++) + ConOutPrintf(_T("here\n")); + + + /* hack geting pipe 1>null working */ + for (i = 0; i < argc; i++) { + if (arg[i][0] != _T('/')) + count++; + } + if (count==3) argc=2; + /* end hack */ + + + + for (i = 0; i < argc; i++) + { + if (arg[i][0] == _T('/')) { if (!DoSwitches (arg[i], lpdwFlags)) @@ -645,6 +660,7 @@ INT cmd_copy (LPTSTR first, LPTSTR rest) BOOL bDestFound; DWORD dwFlags = 0; + ConOutPrintf(_T("string : %s\n"),rest); if (!_tcsncmp (rest, _T("/?"), 2)) { ConOutResPaging(TRUE,STRING_COPY_HELP2);