From 3585764f19adcb6dae13de8accf31d5532af8f43 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Tue, 30 Sep 2003 08:56:52 +0000 Subject: [PATCH] Inadvertly changed the the ready state to 0x0 instead of 0xff Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1278 --- src/dos/dos_ioctl.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/dos/dos_ioctl.cpp b/src/dos/dos_ioctl.cpp index 4bd7fcd6..73ff3205 100644 --- a/src/dos/dos_ioctl.cpp +++ b/src/dos/dos_ioctl.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: dos_ioctl.cpp,v 1.12 2003-07-27 12:12:05 qbix79 Exp $ */ +/* $Id: dos_ioctl.cpp,v 1.13 2003-09-30 08:56:52 qbix79 Exp $ */ #include #include "dosbox.h" @@ -44,17 +44,17 @@ bool DOS_IOCTL(void) { return true; case 0x06: /* Get Input Status */ if (Files[handle]->GetInformation() & 0x8000) { //Check for device - reg_al=(Files[handle]->GetInformation() & 0x40) ? 0xff : 0; + reg_al=(Files[handle]->GetInformation() & 0x40) ? 0x0 : 0xff; } else { // FILE Bit32u oldlocation=0; Files[handle]->Seek(&oldlocation, DOS_SEEK_CUR); Bit32u endlocation=0; Files[handle]->Seek(&endlocation, DOS_SEEK_END); if(oldlocation < endlocation){//Still data available - reg_al=0x0; + reg_al=0xff; } else { - reg_al=0xff; //EOF or beyond + reg_al=0x0; //EOF or beyond } Files[handle]->Seek(&oldlocation, DOS_SEEK_SET); //restore filelocation LOG(LOG_IOCTL,LOG_NORMAL)("06:Used Get Input Status on regualar file with handle %d",handle);