From b1a9d17cf85ab8322aeb700ad28d58f0edf63d08 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sat, 10 Jul 2021 16:50:10 -0300 Subject: Fix GetWritableRegion write-back (#2456) --- Ryujinx.Memory/MemoryBlock.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Ryujinx.Memory/MemoryBlock.cs') diff --git a/Ryujinx.Memory/MemoryBlock.cs b/Ryujinx.Memory/MemoryBlock.cs index e331a453..25c66dfe 100644 --- a/Ryujinx.Memory/MemoryBlock.cs +++ b/Ryujinx.Memory/MemoryBlock.cs @@ -333,7 +333,7 @@ namespace Ryujinx.Memory /// Throw when either or are out of range public WritableRegion GetWritableRegion(ulong offset, int size) { - return new WritableRegion(this, offset, GetMemory(offset, size)); + return new WritableRegion(null, offset, GetMemory(offset, size)); } /// -- cgit v1.2.3