Some tiny protection against weird values
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3734
This commit is contained in:
parent
b29e06c006
commit
8d7b65e0e0
1 changed files with 1 additions and 0 deletions
|
@ -926,6 +926,7 @@ bool DOS_FCBCreate(Bit16u seg,Bit16u offset) {
|
|||
fcb.GetName(shortname);
|
||||
Bit8u attr = DOS_ATTR_ARCHIVE;
|
||||
fcb.GetAttr(attr);
|
||||
if (!attr) attr = DOS_ATTR_ARCHIVE; //Better safe than sorry
|
||||
if (!DOS_CreateFile(shortname,attr,&handle)) return false;
|
||||
fcb.FileOpen((Bit8u)handle);
|
||||
return true;
|
||||
|
|
Loading…
Add table
Reference in a new issue