mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(ViewPointer.Value): check for disposed state.
This commit is contained in:
@@ -778,7 +778,16 @@ namespace GameRes
|
|||||||
m_ptr = m_view.GetPointer (offset);
|
m_ptr = m_view.GetPointer (offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
public byte* Value { get { return m_ptr; } }
|
public byte* Value
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
if (!_disposed)
|
||||||
|
return m_ptr;
|
||||||
|
else
|
||||||
|
throw new ObjectDisposedException ("Access to disposed ViewPointer object failed.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#region IDisposable Members
|
#region IDisposable Members
|
||||||
bool _disposed = false;
|
bool _disposed = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user