mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-25 01:50:57 +01:00
Fix sys_raw_spu_destroy
This commit is contained in:
parent
d7b4753007
commit
8716ac554f
|
|
@ -1989,7 +1989,7 @@ error_code raw_spu_destroy(ppu_thread& ppu, u32 id)
|
|||
|
||||
(*thread)();
|
||||
|
||||
if (idm::withdraw<named_thread<spu_thread>>(idm_id, [&](spu_thread& spu) -> CellError
|
||||
if (auto ret = idm::withdraw<named_thread<spu_thread>>(idm_id, [&](spu_thread& spu) -> CellError
|
||||
{
|
||||
if (std::addressof(spu) != std::addressof(*thread))
|
||||
{
|
||||
|
|
@ -1998,7 +1998,7 @@ error_code raw_spu_destroy(ppu_thread& ppu, u32 id)
|
|||
|
||||
spu.cleanup();
|
||||
return {};
|
||||
}).ret)
|
||||
}); !ret || ret.ret)
|
||||
{
|
||||
// Other thread destroyed beforehead
|
||||
return CELL_ESRCH;
|
||||
|
|
|
|||
Loading…
Reference in a new issue