cmd: Fix renaming inside directories.
This commit is contained in:
parent
94f9e789c9
commit
c5a72379a1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue