From 92ad22418c3689b897e97ad0c6d36e12a3d1d48f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Strohh=C3=A4cker?= Date: Sun, 4 Nov 2007 11:11:34 +0000 Subject: [PATCH] minor fix for get/set file attribute Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3037 --- src/dos/dos.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/dos/dos.cpp b/src/dos/dos.cpp index d81a38c9..872d6a86 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.104 2007-07-27 19:17:23 qbix79 Exp $ */ +/* $Id: dos.cpp,v 1.105 2007-11-04 11:11:34 c2woody Exp $ */ #include #include @@ -579,9 +579,8 @@ static Bitu DOS_21Handler(void) { } case 0x43: /* Get/Set file attributes */ MEM_StrCopy(SegPhys(ds)+reg_dx,name1,DOSNAMEBUF); - switch (reg_al) + switch (reg_al) { case 0x00: /* Get */ - { if (DOS_GetFileAttr(name1,®_cx)) { reg_ax=reg_cx; /* Undocumented */ CALLBACK_SCF(false); @@ -601,7 +600,8 @@ static Bitu DOS_21Handler(void) { break; default: LOG(LOG_MISC,LOG_ERROR)("DOS:0x43:Illegal subfunction %2X",reg_al); - CALLBACK_SCF(false); + reg_ax=1; + CALLBACK_SCF(true); break; } break;