Explorar o código

Remove AddProtection count > 0 assert (#3315)

gdkchan %!s(int64=4) %!d(string=hai) anos
pai
achega
074190e03c
Modificáronse 1 ficheiros con 2 adicións e 4 borrados
  1. 2 4
      Ryujinx.Memory/WindowsShared/PlaceholderManager.cs

+ 2 - 4
Ryujinx.Memory/WindowsShared/PlaceholderManager.cs

@@ -469,14 +469,12 @@ namespace Ryujinx.Memory.WindowsShared
         {
         {
             ulong endAddress = address + size;
             ulong endAddress = address + size;
             var overlaps = Array.Empty<IntervalTreeNode<ulong, MemoryPermission>>();
             var overlaps = Array.Empty<IntervalTreeNode<ulong, MemoryPermission>>();
-            int count = 0;
+            int count;
 
 
             lock (_protections)
             lock (_protections)
             {
             {
                 count = _protections.Get(address, endAddress, ref overlaps);
                 count = _protections.Get(address, endAddress, ref overlaps);
 
 
-                Debug.Assert(count > 0);
-
                 if (count == 1 &&
                 if (count == 1 &&
                     overlaps[0].Start <= address &&
                     overlaps[0].Start <= address &&
                     overlaps[0].End >= endAddress &&
                     overlaps[0].End >= endAddress &&
@@ -574,7 +572,7 @@ namespace Ryujinx.Memory.WindowsShared
         {
         {
             ulong endAddress = address + size;
             ulong endAddress = address + size;
             var overlaps = Array.Empty<IntervalTreeNode<ulong, MemoryPermission>>();
             var overlaps = Array.Empty<IntervalTreeNode<ulong, MemoryPermission>>();
-            int count = 0;
+            int count;
 
 
             lock (_protections)
             lock (_protections)
             {
             {