cmd: Fix renaming inside directories.

This commit is contained in:
Jason Edmeades 2012-09-03 22:48:08 +01:00 committed by Alexandre Julliard
parent 94f9e789c9
commit c5a72379a1
2 changed files with 3 additions and 3 deletions

View File

@ -1872,7 +1872,7 @@ void WCMD_rename (void)
}
/* Destination cannot contain a drive letter or directory separator */
if ((strchrW(param1,':') != NULL) || (strchrW(param1,'\\') != NULL)) {
if ((strchrW(param2,':') != NULL) || (strchrW(param2,'\\') != NULL)) {
SetLastError(ERROR_INVALID_PARAMETER);
WCMD_print_error();
errorlevel = 1;

View File

@ -629,8 +629,8 @@ read-only file renamed
dir renamed
read-only dir renamed
--- rename in other directory
@todo_wine@rename impossible in other directory
@todo_wine@original file still present
rename impossible in other directory
original file still present
------------ Testing move ------------
--- file move
file move succeeded