removed "file already open"-check for debian release
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@671
This commit is contained in:
parent
f89fca8d24
commit
b7e523d522
1 changed files with 2 additions and 2 deletions
|
@ -344,7 +344,7 @@ bool DOS_OpenFile(char * name,Bit8u flags,Bit16u * entry) {
|
|||
if (!DOS_MakeName(name,fullname,&drive)) return false;
|
||||
|
||||
/* Check, if file is already opened */
|
||||
for (i=0;i<DOS_FILES;i++) {
|
||||
/* for (i=0;i<DOS_FILES;i++) {
|
||||
if (Files[i] && Files[i]->IsOpen() && Files[i]->IsName(fullname)) {
|
||||
*entry = psp.FindEntryByHandle(i);
|
||||
if (*entry==0xFF) {
|
||||
|
@ -355,7 +355,7 @@ bool DOS_OpenFile(char * name,Bit8u flags,Bit16u * entry) {
|
|||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
/* Check for a free file handle */
|
||||
for (i=0;i<DOS_FILES;i++) {
|
||||
if (!Files[i]) {
|
||||
|
|
Loading…
Add table
Reference in a new issue