mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-10 06:01:52 +00:00
kern: correct alloc region size
This commit is contained in:
parent
30b3825f5c
commit
0534ddd37a
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ namespace ams::kern {
|
|||
size_t alloc_size;
|
||||
if ((GetInteger(process_code_start) - GetInteger(this->code_region_start)) >= (GetInteger(end) - GetInteger(process_code_end))) {
|
||||
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 {
|
||||
alloc_start = process_code_end;
|
||||
alloc_size = GetInteger(end) - GetInteger(process_code_end);
|
||||
|
|
Loading…
Reference in a new issue