cellSysmodule: fixup

This commit is contained in:
Simon Capriotti 2026-07-01 19:58:12 +02:00 committed by Elad
parent 88f81381e8
commit 8145f24f05

View File

@ -1118,7 +1118,8 @@ error_code cellSysmoduleUnloadModuleInternal(ppu_thread& ppu, u16 id)
// Unload dependencies in reverse order
for (const u16 module_id : MODULE_INFOS[INTERNAL_MODULES_OFFSET + (id & INTERNAL_MODULE_ID_MASK)].dependencies | std::views::reverse)
{
if (const error_code ret = module_id < INTERNAL_MODULE_ID_BASE ? cellSysmoduleUnloadModule(ppu, id) : cellSysmoduleUnloadModuleInternal(ppu, id); ret != CELL_OK)
if (const error_code ret = module_id < INTERNAL_MODULE_ID_BASE ? cellSysmoduleUnloadModule(ppu, module_id) : cellSysmoduleUnloadModuleInternal(ppu, module_id);
ret != CELL_OK)
{
return ret;
}