mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-11-16 02:59:58 +01:00
Fix sys_cond_destroy (#7931)
Dereference cond count in sys_cond_destroy
This commit is contained in:
1 parent
39796141fc
commit
3f559cd86e
2 files changed
+1
-5
No files matched your search
@@ -56,6 +56,7 @@ error_code sys_cond_destroy(ppu_thread& ppu, u32 cond_id)
|
||||
return CELL_EBUSY;
|
||||
}
|
||||
|
||||
cond.mutex->cond_count--;
|
||||
return {};
|
||||
});
|
||||
|
||||
|
||||
@@ -40,11 +40,6 @@ struct lv2_cond final : lv2_obj
|
||||
{
|
||||
this->mutex->cond_count++;
|
||||
}
|
||||
|
||||
~lv2_cond()
|
||||
{
|
||||
this->mutex->cond_count--;
|
||||
}
|
||||
};
|
||||
|
||||
class ppu_thread;
|
||||
|
||||
Reference in new issue
Block a user