[ros-diffs] [greatlrd] 16776: fix errorlevel for type, the r16766 was Brandon Turner patch sorry I forgt menoty his name.

greatlrd at svn.reactos.com greatlrd at svn.reactos.com
Wed Jul 27 03:38:35 CEST 2005


fix errorlevel for type, the r16766 was Brandon Turner patch sorry I
forgt menoty his name.
Modified: trunk/reactos/subsys/system/cmd/type.c
  _____  

Modified: trunk/reactos/subsys/system/cmd/type.c
--- trunk/reactos/subsys/system/cmd/type.c	2005-07-27 01:31:34 UTC
(rev 16775)
+++ trunk/reactos/subsys/system/cmd/type.c	2005-07-27 01:38:00 UTC
(rev 16776)
@@ -78,6 +78,8 @@

 			continue;
 		}
 
+    	nErrorLevel = 0;
+
 		hFile = CreateFile(argv[i],
 			GENERIC_READ,
 			FILE_SHARE_READ,NULL,
@@ -97,6 +99,7 @@
 			               NULL);
 			ConErrPrintf (_T("%s - %s"), argv[i], errmsg);
 			LocalFree (errmsg);
+      nErrorLevel = 1;
 			continue;
 		}
 		
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050727/4c9d45cc/attachment.html


More information about the Ros-diffs mailing list