aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2022-05-04 14:07:10 -0300
committerGitHub <noreply@github.com>2022-05-04 14:07:10 -0300
commit074190e03c975cab0fdc2be35adfaf0fe831f29b (patch)
tree00e6942c7445ba7e9394852be7203e1219e050a2
parent256514c7c9fd5108213425fcd0fc288321b77a79 (diff)
Remove AddProtection count > 0 assert (#3315)1.1.114
-rw-r--r--Ryujinx.Memory/WindowsShared/PlaceholderManager.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/Ryujinx.Memory/WindowsShared/PlaceholderManager.cs b/Ryujinx.Memory/WindowsShared/PlaceholderManager.cs
index a16a8c7f..b0b3bf05 100644
--- a/Ryujinx.Memory/WindowsShared/PlaceholderManager.cs
+++ b/Ryujinx.Memory/WindowsShared/PlaceholderManager.cs
@@ -469,14 +469,12 @@ namespace Ryujinx.Memory.WindowsShared
{
ulong endAddress = address + size;
var overlaps = Array.Empty<IntervalTreeNode<ulong, MemoryPermission>>();
- int count = 0;
+ int count;
lock (_protections)
{
count = _protections.Get(address, endAddress, ref overlaps);
- Debug.Assert(count > 0);
-
if (count == 1 &&
overlaps[0].Start <= address &&
overlaps[0].End >= endAddress &&
@@ -574,7 +572,7 @@ namespace Ryujinx.Memory.WindowsShared
{
ulong endAddress = address + size;
var overlaps = Array.Empty<IntervalTreeNode<ulong, MemoryPermission>>();
- int count = 0;
+ int count;
lock (_protections)
{