Commit c5a72379 authored by Jason Edmeades's avatar Jason Edmeades Committed by Alexandre Julliard

cmd: Fix renaming inside directories.

parent 94f9e789
......@@ -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;
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment