Kim Lilliestierna : cmd: Fix the "move" command the same way as the
"copy" command.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Feb 13 11:07:52 CST 2007
Module: wine
Branch: master
Commit: 9d90abe1b9f22809bf0249147803167e0e9e1e04
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9d90abe1b9f22809bf0249147803167e0e9e1e04
Author: Kim Lilliestierna <kill at itr.no>
Date: Sat Jan 27 15:26:03 2007 +0100
cmd: Fix the "move" command the same way as the "copy" command.
---
programs/cmd/builtins.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/programs/cmd/builtins.c b/programs/cmd/builtins.c
index 018a8e0..49548de 100644
--- a/programs/cmd/builtins.c
+++ b/programs/cmd/builtins.c
@@ -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) {
More information about the wine-cvs
mailing list