From 484f700bbae2e993574290bf6a5ffb8eea50733f Mon Sep 17 00:00:00 2001 From: Bart Oldeman Date: Sun, 23 Mar 2003 18:41:36 +0000 Subject: [PATCH] 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 --- kernel/dosfns.c | 2 +- kernel/newstuff.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }