mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-05 19:51:45 +00:00
ro: fix UnloadNro logic error
This commit is contained in:
parent
7b24b43477
commit
cb74bc6bb8
1 changed files with 2 additions and 2 deletions
|
@ -362,11 +362,11 @@ Result Registration::UnloadNro(RoProcessContext *context, u64 nro_address) {
|
|||
continue;
|
||||
}
|
||||
|
||||
if (context->nro_infos[slot].nro_heap_address == nro_address) {
|
||||
if (context->nro_infos[slot].base_address == nro_address) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (slot == Registration::MaxNrrInfos) {
|
||||
if (slot == Registration::MaxNroInfos) {
|
||||
return ResultRoNotLoaded;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue