mirror of
https://github.com/Atmosphere-NX/Atmosphere-libs.git
synced 2025-08-06 15:39:28 +02:00
kern: correct alloc region size
This commit is contained in:
parent
0daddfacc6
commit
b530ddbdbe
@ -134,7 +134,7 @@ namespace ams::kern {
|
|||||||
size_t alloc_size;
|
size_t alloc_size;
|
||||||
if ((GetInteger(process_code_start) - GetInteger(this->code_region_start)) >= (GetInteger(end) - GetInteger(process_code_end))) {
|
if ((GetInteger(process_code_start) - GetInteger(this->code_region_start)) >= (GetInteger(end) - GetInteger(process_code_end))) {
|
||||||
alloc_start = this->code_region_start;
|
alloc_start = this->code_region_start;
|
||||||
alloc_size = this->code_region_end - alloc_start;
|
alloc_size = GetInteger(process_code_start) - GetInteger(this->code_region_start);
|
||||||
} else {
|
} else {
|
||||||
alloc_start = process_code_end;
|
alloc_start = process_code_end;
|
||||||
alloc_size = GetInteger(end) - GetInteger(process_code_end);
|
alloc_size = GetInteger(end) - GetInteger(process_code_end);
|
||||||
|
Loading…
Reference in New Issue
Block a user