From df089e9e086bce09161eb7ab512417eab78cd387 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Fri, 24 Jan 2025 15:52:45 +0100 Subject: [PATCH] Fix current thread id --- src/windows-emulator/syscalls.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/windows-emulator/syscalls.cpp b/src/windows-emulator/syscalls.cpp index a171cc7e..7e74672b 100644 --- a/src/windows-emulator/syscalls.cpp +++ b/src/windows-emulator/syscalls.cpp @@ -449,7 +449,7 @@ namespace return STATUS_INVALID_HANDLE; } - const auto [old_count, succeeded] = mutant->release(c.proc.current_thread_id); + const auto [old_count, succeeded] = mutant->release(c.win_emu.current_thread().id); if (previous_count) {