Fix bug in ConvertToKMemoryPermission

This commit is contained in:
Belal Ashraf 2024-04-04 23:43:18 +02:00
parent b911ac8516
commit f6b640961f

View file

@ -176,7 +176,7 @@ constexpr KMemoryPermission ConvertToKMemoryPermission(Svc::MemoryPermission per
(static_cast<KMemoryPermission>(perm) & KMemoryPermission::UserMask) | (static_cast<KMemoryPermission>(perm) & KMemoryPermission::UserMask) |
KMemoryPermission::KernelRead | KMemoryPermission::KernelRead |
((static_cast<KMemoryPermission>(perm) & KMemoryPermission::UserWrite) ((static_cast<KMemoryPermission>(perm) & KMemoryPermission::UserWrite)
<< KMemoryPermission::KernelShift) | ? KMemoryPermission::KernelWrite : KMemoryPermission::None) |
(perm == Svc::MemoryPermission::None ? KMemoryPermission::NotMapped (perm == Svc::MemoryPermission::None ? KMemoryPermission::NotMapped
: KMemoryPermission::None)); : KMemoryPermission::None));
} }