mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-25 12:12:50 +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 New Issue
Block a user