mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-18 08:11:21 +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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (context->nro_infos[slot].nro_heap_address == nro_address) {
|
if (context->nro_infos[slot].base_address == nro_address) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (slot == Registration::MaxNrrInfos) {
|
if (slot == Registration::MaxNroInfos) {
|
||||||
return ResultRoNotLoaded;
|
return ResultRoNotLoaded;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user