forked from ShuriZma/suyu
1
0
Fork 0

fix wrong memory permission

This commit is contained in:
Belal Ashraf 2024-04-09 20:25:44 +02:00
parent 6d20086742
commit 81959ea8e5
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ constexpr KMemoryPermission ConvertToKMemoryPermission(Svc::MemoryPermission per
return static_cast<KMemoryPermission>( return static_cast<KMemoryPermission>(
(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) & Svc::MemoryPermission::UserWrite)
? KMemoryPermission::KernelWrite ? KMemoryPermission::KernelWrite
: KMemoryPermission::None) | : KMemoryPermission::None) |
(perm == Svc::MemoryPermission::None ? KMemoryPermission::NotMapped (perm == Svc::MemoryPermission::None ? KMemoryPermission::NotMapped