mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 21:55:34 +08:00
(ArcView): MemoryMappedFile should not dispose underlying file stream itself.
This commit is contained in:
parent
71e985c2c9
commit
c0fa230abb
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user