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