diff --git a/include/dos_inc.h b/include/dos_inc.h index a68f81df..8531692d 100644 --- a/include/dos_inc.h +++ b/include/dos_inc.h @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: dos_inc.h,v 1.55 2005-08-08 13:33:43 c2woody Exp $ */ +/* $Id: dos_inc.h,v 1.56 2005-09-28 19:13:21 c2woody Exp $ */ #ifndef DOSBOX_DOS_INC_H #define DOSBOX_DOS_INC_H @@ -223,6 +223,7 @@ INLINE Bit16u DOS_PackDate(Bit16u year,Bit16u mon,Bit16u day) { #define DOSERR_REMOVE_CURRENT_DIRECTORY 16 #define DOSERR_NOT_SAME_DEVICE 17 #define DOSERR_NO_MORE_FILES 18 +#define DOSERR_FILE_ALREADY_EXISTS 80 /* Remains some classes used to access certain things */ diff --git a/src/dos/dos.cpp b/src/dos/dos.cpp index fccf1413..b47c95dc 100644 --- a/src/dos/dos.cpp +++ b/src/dos/dos.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: dos.cpp,v 1.86 2005-08-23 13:58:03 qbix79 Exp $ */ +/* $Id: dos.cpp,v 1.87 2005-09-28 19:13:21 c2woody Exp $ */ #include #include @@ -756,7 +756,7 @@ static Bitu DOS_21Handler(void) { Bit16u handle; if (DOS_OpenFile(name1,0,&handle)) { DOS_CloseFile(handle); - DOS_SetError(DOSERR_ACCESS_DENIED); + DOS_SetError(DOSERR_FILE_ALREADY_EXISTS); reg_ax=dos.errorcode; CALLBACK_SCF(true); break;