1
0
Fork 0

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
This commit is contained in:
Peter Veenstra 2003-09-30 08:56:52 +00:00
parent f03d970888
commit 3585764f19

View file

@ -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 <string.h>
#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);