1
0
Fork 0

Fixed crash in DOS_GetSTDINStatus

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@486
This commit is contained in:
Ulf Wohlers 2002-11-06 20:52:28 +00:00
parent ca4c7db065
commit 00d4feeb16

View file

@ -96,7 +96,8 @@ bool DOS_IOCTL(void) {
bool DOS_GetSTDINStatus(void) {
Bit32u handle=RealHandle(STDIN);
if (Files[handle]->GetInformation() & 64) return false;
if (handle==0xFF) return false;
if (Files[handle] && (Files[handle]->GetInformation() & 64)) return false;
return true;
};