(ArcView): MemoryMappedFile should not dispose underlying file stream itself.

This commit is contained in:
morkt 2014-07-26 23:17:55 +04:00
parent 71e985c2c9
commit c0fa230abb

View File

@ -118,7 +118,7 @@ namespace GameRes
{ {
MaxOffset = fs.Length; MaxOffset = fs.Length;
m_map = MemoryMappedFile.CreateFromFile (fs, null, 0, m_map = MemoryMappedFile.CreateFromFile (fs, null, 0,
MemoryMappedFileAccess.Read, null, HandleInheritability.None, false); MemoryMappedFileAccess.Read, null, HandleInheritability.None, true);
try { try {
View = new Frame (this); View = new Frame (this);
} catch { } catch {