mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-18 11:13:57 +00:00
Fix thread deletion
This commit is contained in:
@@ -12,16 +12,6 @@ namespace syscalls
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
if (h.value.type == handle_types::thread)
|
||||
{
|
||||
const auto* t = c.proc.threads.get(h);
|
||||
if (t && t->ref_count == 1)
|
||||
{
|
||||
// TODO: Better handle ref counting
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
}
|
||||
|
||||
auto* handle_store = c.proc.get_handle_store(h);
|
||||
if (handle_store && handle_store->erase(h))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user