Skip to content

Commit a754da6

Browse files
committed
fix for issue #3535 where dosbox would hang when accessing files on a zip-mounted drive
1 parent 96439da commit a754da6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dos/drive_physfs.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ bool physfsDrive::FileOpen(DOS_File * * file,const char * name,uint32_t flags) {
407407
return false;
408408
}
409409

410-
*file=new physfsFile(name,hand,0x202,newname,false);
410+
*file=new physfsFile(name,hand,0x2,newname,false);
411411
(*file)->flags=flags; //for the inheritance flag and maybe check for others.
412412
return true;
413413
}
@@ -447,7 +447,7 @@ bool physfsDrive::FileCreate(DOS_File * * file,const char * name,uint16_t attrib
447447
}
448448

449449
/* Make the 16 bit device information */
450-
*file=new physfsFile(name,hand,0x202,newname,true);
450+
*file=new physfsFile(name,hand,0x2,newname,true);
451451
(*file)->flags=OPEN_READWRITE;
452452
if(!existing_file) {
453453
strcpy(newname,basedir);

0 commit comments

Comments
 (0)