Fix bug "mv foo.txt c:\temp gives you c:\tempfoo.txt" by Brandon Turner
Modified: trunk/reactos/subsys/system/cmd/move.c
_____
Modified: trunk/reactos/subsys/system/cmd/move.c
--- 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*/
Update command help text with \n at the end of the text
Modified: trunk/reactos/subsys/system/cmd/De.rc
Modified: trunk/reactos/subsys/system/cmd/En.rc
_____
Modified: trunk/reactos/subsys/system/cmd/De.rc
--- trunk/reactos/subsys/system/cmd/De.rc 2005-07-07 11:26:38 UTC
(rev 16481)
+++ trunk/reactos/subsys/system/cmd/De.rc 2005-07-07 11:44:15 UTC
(rev 16482)
@@ -560,7 +560,7 @@
VER Zeigt die Windows-Version an.\n\
VERIFY Legt fest, ob ueberwacht werden soll, ob Dateien korrekt auf
den\n\
Datentraeger geschrieben werden.\n\
-VOL Zeigt die Datentraegervolumebezeichnung und die Seriennummer
an."
+VOL Zeigt die Datentraegervolumebezeichnung und die Seriennummer
an.\n"
STRING_CHOICE_OPTION, "JN"
_____
Modified: trunk/reactos/subsys/system/cmd/En.rc
--- trunk/reactos/subsys/system/cmd/En.rc 2005-07-07 11:26:38 UTC
(rev 16481)
+++ trunk/reactos/subsys/system/cmd/En.rc 2005-07-07 11:44:15 UTC
(rev 16482)
@@ -551,7 +551,7 @@
VER Displays the Windows version.\n\
VERIFY Tells Windows whether to verify that your files are written\n\
correctly to a disk.\n\
-VOL Displays a disk volume label and serial number."
+VOL Displays a disk volume label and serial number.\n"
STRING_CHOICE_OPTION, "YN"