From 8145f24f058d82d11b0224ab0b4e76edd0988a94 Mon Sep 17 00:00:00 2001 From: Simon Capriotti Date: Wed, 1 Jul 2026 19:58:12 +0200 Subject: [PATCH] cellSysmodule: fixup --- rpcs3/Emu/Cell/Modules/cellSysmodule.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/Modules/cellSysmodule.cpp b/rpcs3/Emu/Cell/Modules/cellSysmodule.cpp index 75f0f5d2a9..dd556b7945 100644 --- a/rpcs3/Emu/Cell/Modules/cellSysmodule.cpp +++ b/rpcs3/Emu/Cell/Modules/cellSysmodule.cpp @@ -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; }