From d830bea3c5ad3ceffbb41af9327b72eb85a95524 Mon Sep 17 00:00:00 2001 From: 66hh <49398720+66hh@users.noreply.github.com> Date: Tue, 30 Dec 2025 17:40:16 +0800 Subject: [PATCH] Try to fix the build --- src/windows-emulator/syscalls/exception.cpp | 5 ++--- src/windows-emulator/syscalls/object.cpp | 1 - src/windows-emulator/syscalls/process.cpp | 1 - 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/windows-emulator/syscalls/exception.cpp b/src/windows-emulator/syscalls/exception.cpp index fab2d2ee..eb652179 100644 --- a/src/windows-emulator/syscalls/exception.cpp +++ b/src/windows-emulator/syscalls/exception.cpp @@ -5,8 +5,7 @@ namespace syscalls { NTSTATUS handle_NtRaiseHardError(const syscall_context& c, const NTSTATUS error_status, const ULONG number_of_parameters, - const emulator_object>> - /*unicode_string_parameter_mask*/, + const emulator_object>> /*unicode_string_parameter_mask*/, const uint64_t parameters, const HARDERROR_RESPONSE_OPTION /*valid_response_option*/, const emulator_object response) { @@ -17,7 +16,7 @@ namespace syscalls if (error_status & STATUS_SERVICE_NOTIFICATION && number_of_parameters >= 3) { - ULONG_PTR params[3] = {0, 0, 0}; + uint64_t params[3] = {0, 0, 0}; if (c.emu.try_read_memory(parameters, ¶ms, sizeof(params))) { diff --git a/src/windows-emulator/syscalls/object.cpp b/src/windows-emulator/syscalls/object.cpp index 74201e67..1d474ffe 100644 --- a/src/windows-emulator/syscalls/object.cpp +++ b/src/windows-emulator/syscalls/object.cpp @@ -6,7 +6,6 @@ namespace syscalls { NTSTATUS handle_NtClose(const syscall_context& c, const handle h) { - const auto value = h.value; if (h.h == 0xDEADC0DE) diff --git a/src/windows-emulator/syscalls/process.cpp b/src/windows-emulator/syscalls/process.cpp index 0f2b7342..edb18355 100644 --- a/src/windows-emulator/syscalls/process.cpp +++ b/src/windows-emulator/syscalls/process.cpp @@ -283,7 +283,6 @@ namespace syscalls if (info_class == ProcessInstrumentationCallback) { - if (process_information_length != sizeof(PROCESS_INSTRUMENTATION_CALLBACK_INFORMATION)) { return STATUS_BUFFER_OVERFLOW;