fix errorlevel for copy. left to do is /D = copy encrypte file and decypte to destinations (NT3.51) /S = make destfile name 8.3 compatible (NT3.51) /Z = restart copy if it fails 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-15 13:51:38 UTC (rev 16574) +++ trunk/reactos/subsys/system/cmd/copy.c 2005-07-15 14:12:48 UTC (rev 16575) @@ -72,6 +72,7 @@
{ LoadString(CMD_ModuleHandle, STRING_COPY_ERROR1, szMsg, RC_STRING_MAX_SIZE); ConOutPrintf(szMsg, source); + nErrorLevel = 1; return 0; }
@@ -102,6 +103,7 @@ ConOutPrintf(szMsg, source);
CloseHandle (hFileSrc); + nErrorLevel = 1; return 0; }
@@ -182,6 +184,7 @@ free (buffer); CloseHandle (hFileDest); CloseHandle (hFileSrc); + nErrorLevel = 1; return 0; } } @@ -266,6 +269,8 @@ return 0; }
+ nErrorLevel = 0; + /* Get the envor value if it exists */ evar = malloc(512); size = GetEnvironmentVariable (_T("COPYCMD"), evar, 512); @@ -710,6 +715,7 @@ /* print out the error message */ LoadString(CMD_ModuleHandle, STRING_COPY_ERROR3, szMsg, RC_STRING_MAX_SIZE); ConOutPrintf(szMsg); + nErrorLevel = 1; }
/* Loop through all wildcard files */