mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-18 08:11:21 +00:00
kern: correct alloc region size
This commit is contained in:
parent
30b3825f5c
commit
0534ddd37a
@ -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 New Issue
Block a user