diff --git a/kernel/dosfns.c b/kernel/dosfns.c index 53a0d7d..1a07743 100644 --- a/kernel/dosfns.c +++ b/kernel/dosfns.c @@ -1271,7 +1271,7 @@ COUNT DosRenameTrue(BYTE * path1, BYTE * path2, int attrib) { if (path1[0] != path2[0]) { - return DE_INVLDDRV; + return DE_DEVICE; /* not same device */ } if (current_ldt->cdsFlags & CDSNETWDRV) return remote_rename(); diff --git a/kernel/newstuff.c b/kernel/newstuff.c index e69136f..505642c 100644 --- a/kernel/newstuff.c +++ b/kernel/newstuff.c @@ -128,7 +128,7 @@ COUNT get_verify_drive(const char FAR * src) drive = default_drive; if (get_cds(drive) == NULL) - return DE_INVLDDRV; + return DE_PATHNOTFND; return drive; }