mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
hle: kernel: svc: UnmapProcessCodeMemory: Fix inverted alignment check.
This commit is contained in:
parent
664d8c8732
commit
4e2401c11a
1 changed files with 1 additions and 1 deletions
|
@ -1664,7 +1664,7 @@ static ResultCode UnmapProcessCodeMemory(Core::System& system, Handle process_ha
|
||||||
return ResultInvalidAddress;
|
return ResultInvalidAddress;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (size == 0 || Common::Is4KBAligned(size)) {
|
if (size == 0 || !Common::Is4KBAligned(size)) {
|
||||||
LOG_ERROR(Kernel_SVC, "Size is zero or not page-aligned (size=0x{:016X}).", size);
|
LOG_ERROR(Kernel_SVC, "Size is zero or not page-aligned (size=0x{:016X}).", size);
|
||||||
return ResultInvalidSize;
|
return ResultInvalidSize;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue