aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Audio/Renderer/Server/MemoryPool/PoolMapper.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Audio/Renderer/Server/MemoryPool/PoolMapper.cs')
-rw-r--r--Ryujinx.Audio/Renderer/Server/MemoryPool/PoolMapper.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Ryujinx.Audio/Renderer/Server/MemoryPool/PoolMapper.cs b/Ryujinx.Audio/Renderer/Server/MemoryPool/PoolMapper.cs
index cf0fc067..6c79da15 100644
--- a/Ryujinx.Audio/Renderer/Server/MemoryPool/PoolMapper.cs
+++ b/Ryujinx.Audio/Renderer/Server/MemoryPool/PoolMapper.cs
@@ -263,12 +263,12 @@ namespace Ryujinx.Audio.Renderer.Server.MemoryPool
return UpdateResult.Success;
}
- if (inParameter.CpuAddress == 0 || (inParameter.CpuAddress & (pageSize - 1)) != 0)
+ if (inParameter.CpuAddress == 0 || (inParameter.CpuAddress % pageSize) != 0)
{
return UpdateResult.InvalidParameter;
}
- if (inParameter.Size == 0 || (inParameter.Size & (pageSize - 1)) != 0)
+ if (inParameter.Size == 0 || (inParameter.Size % pageSize) != 0)
{
return UpdateResult.InvalidParameter;
}