From 74d63d330b3130f14112676e4b733aae7aa2ca51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Strohh=C3=A4cker?= Date: Wed, 28 Sep 2005 19:13:21 +0000 Subject: [PATCH] fix returncode of int21,ah=5b (create new file) Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2328 --- include/dos_inc.h | 3 ++- src/dos/dos.cpp | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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;