[ros-diffs] [greatlrd] 16526: quick dirty hack getting our copy working with 1>null by me

greatlrd at svn.reactos.com greatlrd at svn.reactos.com
Sun Jul 10 23:26:54 CEST 2005


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);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050710/e38f6908/attachment.html


More information about the Ros-diffs mailing list