mirror of
https://github.com/reactos/reactos.git
synced 2024-07-12 07:35:10 +00:00
don't try to append when there is only one parameter given
See issue #3023 for more details. svn path=/trunk/; revision=32062
This commit is contained in:
parent
918dc6ab7d
commit
08720c6375
|
@ -539,6 +539,8 @@ INT cmd_copy (LPTSTR cmd, LPTSTR param)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (nDes != -1) /* you can only append files when there is a destination */
|
||||||
|
{
|
||||||
if(((_tcschr (arg[nSrc], _T('+')) != NULL) ||
|
if(((_tcschr (arg[nSrc], _T('+')) != NULL) ||
|
||||||
(_tcschr (arg[nSrc], _T('*')) != NULL && _tcschr (arg[nDes], _T('*')) == NULL) ||
|
(_tcschr (arg[nSrc], _T('*')) != NULL && _tcschr (arg[nDes], _T('*')) == NULL) ||
|
||||||
(IsExistingDirectory (arg[nSrc]) && (_tcschr (arg[nDes], _T('*')) == NULL && !IsExistingDirectory (arg[nDes])))
|
(IsExistingDirectory (arg[nSrc]) && (_tcschr (arg[nDes], _T('*')) == NULL && !IsExistingDirectory (arg[nDes])))
|
||||||
|
@ -551,6 +553,7 @@ INT cmd_copy (LPTSTR cmd, LPTSTR param)
|
||||||
if(_tcschr (arg[nSrc], _T('+')) != NULL)
|
if(_tcschr (arg[nSrc], _T('+')) != NULL)
|
||||||
appendPointer = arg[nSrc];
|
appendPointer = arg[nSrc];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Reusing the number of files variable */
|
/* Reusing the number of files variable */
|
||||||
nFiles = 0;
|
nFiles = 0;
|
||||||
|
|
Loading…
Reference in a new issue