mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-02 04:52:44 +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>(
|
||||
(static_cast<KMemoryPermission>(perm) & KMemoryPermission::UserMask) |
|
||||
KMemoryPermission::KernelRead |
|
||||
((static_cast<KMemoryPermission>(perm) & KMemoryPermission::UserWrite)
|
||||
((static_cast<KMemoryPermission>(perm) & Svc::MemoryPermission::UserWrite)
|
||||
? KMemoryPermission::KernelWrite
|
||||
: KMemoryPermission::None) |
|
||||
(perm == Svc::MemoryPermission::None ? KMemoryPermission::NotMapped
|
||||
|
|
Loading…
Reference in a new issue