Fix PermissionLocked check on UnmapProcessCodeMemory (#6314)

This commit is contained in:
gdkchan 2024-02-15 16:16:01 -03:00 committed by GitHub
parent 74fe814329
commit 74a18b7c18
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -673,9 +673,9 @@ namespace Ryujinx.HLE.HOS.Kernel.Memory
MemoryState.UnmapProcessCodeMemoryAllowed,
KMemoryPermission.None,
KMemoryPermission.None,
MemoryAttribute.Mask,
MemoryAttribute.Mask & ~MemoryAttribute.PermissionLocked,
MemoryAttribute.None,
MemoryAttribute.IpcAndDeviceMapped | MemoryAttribute.PermissionLocked,
MemoryAttribute.IpcAndDeviceMapped,
out MemoryState state,
out _,
out _);