1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-10 06:01:52 +00:00

ro: fix UnloadNro logic error

This commit is contained in:
Michael Scire 2019-04-22 00:31:17 -07:00
parent 7b24b43477
commit cb74bc6bb8

View file

@ -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;
}