Try to fix bugs.

This commit is contained in:
Bruce
2026-04-10 10:50:22 +08:00
parent 19757502ae
commit f563f97f12
17 changed files with 231 additions and 332 deletions
+8 -4
View File
@@ -17,15 +17,15 @@ namespace PriFileFormat
}
public override bool CanRead
{
get { return true; }
get { return comStream != null; }
}
public override bool CanSeek
{
get { return true; }
get { return comStream != null; }
}
public override bool CanWrite
{
get { return true; }
get { return comStream != null; }
}
public override long Length
{
@@ -142,6 +142,10 @@ namespace PriFileFormat
comStream.SetSize (value);
}
}
~ComStreamWrapper () { comStream = null;}
public override void Close ()
{
base.Close ();
comStream = null;
}
}
}