diff options
Diffstat (limited to 'Ryujinx.Memory/Tracking/RegionHandle.cs')
-rw-r--r-- | Ryujinx.Memory/Tracking/RegionHandle.cs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Ryujinx.Memory/Tracking/RegionHandle.cs b/Ryujinx.Memory/Tracking/RegionHandle.cs index affc84ab..86c77abc 100644 --- a/Ryujinx.Memory/Tracking/RegionHandle.cs +++ b/Ryujinx.Memory/Tracking/RegionHandle.cs @@ -411,10 +411,7 @@ namespace Ryujinx.Memory.Tracking /// </summary> public void Dispose() { - if (_disposed) - { - throw new ObjectDisposedException(GetType().FullName); - } + ObjectDisposedException.ThrowIf(_disposed, this); _disposed = true; |