mirror of
https://github.com/Atmosphere-NX/Atmosphere-libs.git
synced 2025-06-28 14:02:40 +02:00
kern: Fix bug when reducing heap size
This commit is contained in:
parent
600a069f00
commit
52d15eecd8
@ -1181,7 +1181,7 @@ namespace ams::kern {
|
|||||||
KScopedPageTableUpdater updater(this);
|
KScopedPageTableUpdater updater(this);
|
||||||
|
|
||||||
/* Validate memory state. */
|
/* Validate memory state. */
|
||||||
R_TRY(this->CheckMemoryState(this->heap_region_start + size, (this->heap_region_end - this->heap_region_start) - size,
|
R_TRY(this->CheckMemoryState(this->heap_region_start + size, (this->current_heap_end - this->heap_region_start) - size,
|
||||||
KMemoryState_All, KMemoryState_Normal,
|
KMemoryState_All, KMemoryState_Normal,
|
||||||
KMemoryPermission_All, KMemoryPermission_UserReadWrite,
|
KMemoryPermission_All, KMemoryPermission_UserReadWrite,
|
||||||
KMemoryAttribute_All, KMemoryAttribute_None));
|
KMemoryAttribute_All, KMemoryAttribute_None));
|
||||||
|
Loading…
Reference in New Issue
Block a user