mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-22 02:45:07 -04:00
strat: replace kernel/dbg magic numbers with result defs
This commit is contained in:
parent
285feba42b
commit
acffae6643
13 changed files with 52 additions and 33 deletions
|
@ -209,7 +209,7 @@ Result NsoUtils::CalculateNsoLoadExtents(u32 addspace_type, u32 args_size, NsoLo
|
|||
break;
|
||||
default:
|
||||
/* TODO: Panic. */
|
||||
return 0xD001;
|
||||
return ResultKernelOutOfMemory;
|
||||
}
|
||||
} else {
|
||||
if (addspace_type & 2) {
|
||||
|
@ -221,7 +221,7 @@ Result NsoUtils::CalculateNsoLoadExtents(u32 addspace_type, u32 args_size, NsoLo
|
|||
}
|
||||
}
|
||||
if (extents->total_size > addspace_size) {
|
||||
return 0xD001;
|
||||
return ResultKernelOutOfMemory;
|
||||
}
|
||||
|
||||
u64 aslr_slide = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue