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