--- trunk/reactos/subsys/system/cmd/move.c 2005-07-07 16:06:43 UTC (rev 16485)
+++ trunk/reactos/subsys/system/cmd/move.c 2005-07-07 16:22:45 UTC (rev 16486)
@@ -182,9 +182,10 @@
/*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*/