cmd: Fix the "move" command the same way as the "copy" command.

This commit is contained in:
Kim Lilliestierna 2007-01-27 15:26:03 +01:00 committed by Alexandre Julliard
parent aef6e2d35d
commit 9d90abe1b9
1 changed files with 2 additions and 0 deletions

View File

@ -519,6 +519,8 @@ HANDLE hff;
/* If 2nd parm is directory, then use original filename */
GetFullPathName (param2, sizeof(outpath), outpath, NULL);
if (outpath[strlen(outpath) - 1] == '\\')
outpath[strlen(outpath) - 1] = '\0';
hff = FindFirstFile (outpath, &fd);
if (hff != INVALID_HANDLE_VALUE) {
if (fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) {