mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-27 17:22:46 +01:00
fix wrong memory permission
This commit is contained in:
parent
6d20086742
commit
81959ea8e5
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue