DE_INVLDDRV should be DE_DEVICE for rename and DE_PATHNOTFND for truename
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@563 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
parent
16b16b185b
commit
484f700bba
@ -1271,7 +1271,7 @@ COUNT DosRenameTrue(BYTE * path1, BYTE * path2, int attrib)
|
|||||||
{
|
{
|
||||||
if (path1[0] != path2[0])
|
if (path1[0] != path2[0])
|
||||||
{
|
{
|
||||||
return DE_INVLDDRV;
|
return DE_DEVICE; /* not same device */
|
||||||
}
|
}
|
||||||
if (current_ldt->cdsFlags & CDSNETWDRV)
|
if (current_ldt->cdsFlags & CDSNETWDRV)
|
||||||
return remote_rename();
|
return remote_rename();
|
||||||
|
@ -128,7 +128,7 @@ COUNT get_verify_drive(const char FAR * src)
|
|||||||
drive = default_drive;
|
drive = default_drive;
|
||||||
|
|
||||||
if (get_cds(drive) == NULL)
|
if (get_cds(drive) == NULL)
|
||||||
return DE_INVLDDRV;
|
return DE_PATHNOTFND;
|
||||||
|
|
||||||
return drive;
|
return drive;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user