mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 17:45:41 +00:00
Fix bug "mv foo.txt c:\temp gives you c:\tempfoo.txt" by Brandon Turner
svn path=/trunk/; revision=16486
This commit is contained in:
parent
4e39fcafa0
commit
7d472ee662
1 changed files with 4 additions and 3 deletions
|
@ -182,9 +182,10 @@ INT cmd_move (LPTSTR cmd, LPTSTR param)
|
|||
/*build the dest string(accounts for *)*/
|
||||
TCHAR szFullDestPath[MAX_PATH];
|
||||
_tcscpy (szFullDestPath, szDestPath);
|
||||
/*this line causes a one to many slashes, GetFullPathName must
|
||||
be adding on a \ when it sees that is a dir*/
|
||||
//_tcscat (szFullDestPath, _T("\\"));
|
||||
/*check to see if there is an ending slash, if not add one*/
|
||||
if(szFullDestPath[_tcslen(szFullDestPath) - 1] != _T('\\'))
|
||||
_tcscat (szFullDestPath, _T("\\"));
|
||||
|
||||
_tcscat (szFullDestPath, findBuffer.cFileName);
|
||||
|
||||
/*checks to make sure user wanted/wants the override*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue