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