From 351f5bab081e15e658ee7ad226993c0350cef105 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Thu, 24 Feb 2005 11:35:32 +0000 Subject: [PATCH] force duplicate uses reg_cx instead of ax Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2116 --- src/dos/dos.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/dos/dos.cpp b/src/dos/dos.cpp index 73cabafd..259b7bd5 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.81 2005-02-10 10:20:50 qbix79 Exp $ */ +/* $Id: dos.cpp,v 1.82 2005-02-24 11:35:32 qbix79 Exp $ */ #include #include @@ -563,7 +563,8 @@ static Bitu DOS_21Handler(void) { } break; case 0x46: /* DUP2,FORCEDUP Force duplicate file handle */ - if (DOS_ForceDuplicateEntry(reg_bx,reg_ax)) { + if (DOS_ForceDuplicateEntry(reg_bx,reg_cx)) { + reg_ax=reg_cx; //Not all sources agree on it. CALLBACK_SCF(false); } else { reg_ax=dos.errorcode;