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.
Modified: trunk/reactos/subsys/system/cmd/copy.c
_____
Modified: trunk/reactos/subsys/system/cmd/copy.c
--- trunk/reactos/subsys/system/cmd/copy.c 2005-07-10 11:49:10 UTC
(rev 16525)
+++ trunk/reactos/subsys/system/cmd/copy.c 2005-07-10 21:26:51 UTC
(rev 16526)
@@ -232,8 +232,23 @@
source = 0;
count = 0;
+ 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 @@
BOOL bDestFound;
DWORD dwFlags = 0;
+ ConOutPrintf(_T("string : %s\n"),rest);
if (!_tcsncmp (rest, _T("/?"), 2))
{
ConOutResPaging(TRUE,STRING_COPY_HELP2);