From 7a3a5d760ebcda9af957334966a0eb210d2439f5 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sat, 12 Jul 2025 15:28:30 +0200 Subject: [PATCH] Fix thread deletion --- src/windows-emulator/syscalls/object.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/windows-emulator/syscalls/object.cpp b/src/windows-emulator/syscalls/object.cpp index cf8d9da7..81c71f4d 100644 --- a/src/windows-emulator/syscalls/object.cpp +++ b/src/windows-emulator/syscalls/object.cpp @@ -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)) {