Author: janderwald
Date: Wed Apr 2 14:00:19 2008
New Revision: 32823
URL:
http://svn.reactos.org/svn/reactos?rev=32823&view=rev
Log:
- fix identation which got broken in rev 32822
Modified:
trunk/reactos/base/shell/cmd/copy.c
Modified: trunk/reactos/base/shell/cmd/copy.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/cmd/copy.c?rev=…
==============================================================================
--- trunk/reactos/base/shell/cmd/copy.c [iso-8859-1] (original)
+++ trunk/reactos/base/shell/cmd/copy.c [iso-8859-1] Wed Apr 2 14:00:19 2008
@@ -485,7 +485,7 @@
LoadString(CMD_ModuleHandle, STRING_ERROR_INVALID_SWITCH, szMsg,
RC_STRING_MAX_SIZE);
ConOutPrintf(szMsg, _totupper(arg[i][1]));
nErrorLevel = 1;
- freep (arg);
+ freep (arg);
return 1;
break;
}
@@ -505,19 +505,19 @@
/* Add these onto the source string
this way we can do all checks
directly on source string later on */
- TCHAR * ptr;
- int length = (_tcslen(arg[nSrc]) +_tcslen(arg[i]) + _tcslen(arg[i+1]) + 1) *
sizeof(TCHAR);
- ptr = cmd_alloc(length);
- if (ptr)
- {
- _tcscpy(ptr, arg[nSrc]);
- _tcscat(ptr, arg[i]);
- _tcscat(ptr, arg[i+1]);
- cmd_free(arg[nSrc]);
- arg[nSrc] = ptr;
- i++;
- nFiles -= 2;
- }
+ TCHAR * ptr;
+ int length = (_tcslen(arg[nSrc]) +_tcslen(arg[i]) + _tcslen(arg[i+1]) +
1) * sizeof(TCHAR);
+ ptr = cmd_alloc(length);
+ if (ptr)
+ {
+ _tcscpy(ptr, arg[nSrc]);
+ _tcscat(ptr, arg[i]);
+ _tcscat(ptr, arg[i+1]);
+ cmd_free(arg[nSrc]);
+ arg[nSrc] = ptr;
+ i++;
+ nFiles -= 2;
+ }
}
else if(nDes == -1)
{