Fix GetWritableRegion write-back (#2456)

This commit is contained in:
gdkchan
2021-07-10 16:50:10 -03:00
committed by GitHub
parent 59900d7f00
commit b1a9d17cf8
2 changed files with 4 additions and 2 deletions

View File

@ -333,7 +333,7 @@ namespace Ryujinx.Memory
/// <exception cref="InvalidMemoryRegionException">Throw when either <paramref name="offset"/> or <paramref name="size"/> are out of range</exception>
public WritableRegion GetWritableRegion(ulong offset, int size)
{
return new WritableRegion(this, offset, GetMemory(offset, size));
return new WritableRegion(null, offset, GetMemory(offset, size));
}
/// <summary>