mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-25 16:22:47 +01:00
Fix bug in ConvertToKMemoryPermission
This commit is contained in:
parent
2caadffe4d
commit
5002fde374
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ constexpr KMemoryPermission ConvertToKMemoryPermission(Svc::MemoryPermission per
|
||||||
(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) & KMemoryPermission::UserWrite)
|
||||||
<< KMemoryPermission::KernelShift) |
|
? KMemoryPermission::KernelWrite : KMemoryPermission::None) |
|
||||||
(perm == Svc::MemoryPermission::None ? KMemoryPermission::NotMapped
|
(perm == Svc::MemoryPermission::None ? KMemoryPermission::NotMapped
|
||||||
: KMemoryPermission::None));
|
: KMemoryPermission::None));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue