by Brandon Turner
svn path=/trunk/; revision=16679
{
/*if it isnt a switch then it is the source or destination*/
if(nSrc == -1)
+ {
nSrc = i;
+ }
+ else if(*arg[i] == _T('+') || *arg[i] == _T(','))
+ {
+ /* Add these onto the source string
+ this way we can do all checks
+ directly on source string later on */
+ _tcscat(arg[nSrc],arg[i]);
+ nFiles--;
+ }
else if(nDes == -1)
+ {
nDes = i;
+ }
}
}
LoadString(CMD_ModuleHandle, STRING_COPY_FILE, szMsg, RC_STRING_MAX_SIZE);
ConOutPrintf(szMsg, nFiles);
- CloseHandle(hFile);
- freep (arg);
+ CloseHandle(hFile);
+ if (arg!=NULL)
+ free(arg);
+
return 0;
}