fix returncode of int21,ah=5b (create new file)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2328
This commit is contained in:
parent
6b94af7c58
commit
74d63d330b
2 changed files with 4 additions and 3 deletions
|
@ -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 */
|
||||
|
|
|
@ -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 <stdlib.h>
|
||||
#include <string.h>
|
||||
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue