mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-23 04:29:42 +00:00
fix wrong memory permission
This commit is contained in:
parent
6d20086742
commit
81959ea8e5
@ -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 New Issue
Block a user