[ros-diffs] [greatlrd] 16579: Forget set some error level and some msg that should have goto ConOut not to ConErr so pipe are working with thuse msg

greatlrd at svn.reactos.com greatlrd at svn.reactos.com
Fri Jul 15 16:50:51 CEST 2005


Forget set some error level and some msg that should have goto ConOut
not to ConErr  so pipe are working with thuse msg
Modified: trunk/reactos/subsys/system/cmd/console.c
Modified: trunk/reactos/subsys/system/cmd/copy.c
  _____  

Modified: trunk/reactos/subsys/system/cmd/console.c
--- trunk/reactos/subsys/system/cmd/console.c	2005-07-15 14:40:47 UTC
(rev 16578)
+++ trunk/reactos/subsys/system/cmd/console.c	2005-07-15 14:50:46 UTC
(rev 16579)
@@ -349,13 +349,13 @@

 	va_end (arg_ptr);
 	if(ret > 0)
 	{
-		ConErrPuts (text);
+		ConOutPuts (text);
 		LocalFree(text);
 	}
 	else
 	{
 		LoadString(CMD_ModuleHandle, STRING_CONSOLE_ERROR,
szMsg, RC_STRING_MAX_SIZE);
-		ConErrPrintf(szMsg);
+		ConOutPrintf(szMsg);
 	}
 }
 
  _____  

Modified: trunk/reactos/subsys/system/cmd/copy.c
--- trunk/reactos/subsys/system/cmd/copy.c	2005-07-15 14:40:47 UTC
(rev 16578)
+++ trunk/reactos/subsys/system/cmd/copy.c	2005-07-15 14:50:46 UTC
(rev 16579)
@@ -146,6 +146,7 @@

 	{
 		CloseHandle (hFileSrc);
 		error_path_not_found ();
+    nErrorLevel = 1;
 		return 0;
 	}
 	buffer = (LPBYTE)malloc (BUFF_SIZE);
@@ -154,6 +155,7 @@
 		CloseHandle (hFileDest);
 		CloseHandle (hFileSrc);
 		error_out_of_memory ();
+    nErrorLevel = 1;
 		return 0;
 	}
  
@@ -434,6 +436,7 @@
 	{
 		/* there is too many file names in command */
 		error_too_many_parameters("");
+    nErrorLevel = 1;
 		return 1;
 	}
  
@@ -607,6 +610,7 @@
 			{			
 				ConOutFormatMessage (GetLastError(),
szSrcPath);			
 				freep (arg);
+        nErrorLevel = 1;
 				return 1;
 			}
  
@@ -624,6 +628,7 @@
 			{
 				ConOutFormatMessage (GetLastError (),
szSrcPath);			
 				freep (arg);
+        nErrorLevel = 1;
 				return 1;
 			}
 			/* Copy over the destination path name */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050715/ddad6664/attachment.html


More information about the Ros-diffs mailing list