mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-17 23:12:17 +00:00
ro: fix UnloadNro logic error
This commit is contained in:
parent
7b24b43477
commit
cb74bc6bb8
@ -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 New Issue
Block a user