Fixed crash in DOS_GetSTDINStatus
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@486
This commit is contained in:
parent
ca4c7db065
commit
00d4feeb16
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue