From 536f2ce883a03d5d18444e91dd15245cae978798 Mon Sep 17 00:00:00 2001 From: 66hh <49398720+66hh@users.noreply.github.com> Date: Mon, 29 Dec 2025 00:54:31 +0800 Subject: [PATCH] Adjust variable order --- src/windows-emulator/syscalls/thread.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/windows-emulator/syscalls/thread.cpp b/src/windows-emulator/syscalls/thread.cpp index e4991bdc..49d8c4dc 100644 --- a/src/windows-emulator/syscalls/thread.cpp +++ b/src/windows-emulator/syscalls/thread.cpp @@ -135,6 +135,8 @@ namespace syscalls return STATUS_INVALID_HANDLE; } + emulator_thread& cur_emulator_thread = c.win_emu.current_thread(); + if (info_class == ThreadWow64Context) { // ThreadWow64Context is only valid for WOW64 processes @@ -277,10 +279,8 @@ namespace syscalls return STATUS_BUFFER_OVERFLOW; } - emulator_thread& thread = c.win_emu.current_thread(); - const emulator_object info{c.emu, thread_information}; - info.write(thread.debugger_hide); + info.write(cur_emulator_thread.debugger_hide); return STATUS_SUCCESS; }