Преглед на файлове

misc: Fix IVirtualMemoryManager.Fill ignoring value (#2775)

This fix IVirtualMemoryManager.Fill to actually use the provided fill
value instead of 0.

This have no implication at the moment as everything that use it pass 0
but it is needed for some upcoming kernel fixes.
Mary преди 4 години
родител
ревизия
85d8d1d7ca
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      Ryujinx.Memory/IVirtualMemoryManager.cs

+ 1 - 1
Ryujinx.Memory/IVirtualMemoryManager.cs

@@ -68,7 +68,7 @@ namespace Ryujinx.Memory
 
                 using var writableRegion = GetWritableRegion(va + subOffset, copySize);
 
-                writableRegion.Memory.Span.Fill(0);
+                writableRegion.Memory.Span.Fill(value);
             }
         }