From fcf8fc001ec663bf99bfadc9d49a1c514a4fea16 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Wed, 25 Dec 2024 14:43:40 +0100 Subject: [PATCH] Add new syscall --- src/windows-emulator/syscalls.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/windows-emulator/syscalls.cpp b/src/windows-emulator/syscalls.cpp index c821ff34..73df1642 100644 --- a/src/windows-emulator/syscalls.cpp +++ b/src/windows-emulator/syscalls.cpp @@ -3056,6 +3056,12 @@ namespace return STATUS_INVALID_PARAMETER; } + NTSTATUS handle_NtUnmapViewOfSectionEx(const syscall_context& c, const handle process_handle, + const uint64_t base_address, const ULONG /*flags*/) + { + return handle_NtUnmapViewOfSection(c, process_handle, base_address); + } + NTSTATUS handle_NtCreateThreadEx(const syscall_context& c, const emulator_object thread_handle, const ACCESS_MASK /*desired_access*/, const emulator_object /*object_attributes*/, @@ -3347,6 +3353,7 @@ void syscall_dispatcher::add_handlers(std::map& ha add_handler(NtAddAtomEx); add_handler(NtInitializeNlsFiles); add_handler(NtUnmapViewOfSection); + add_handler(NtUnmapViewOfSectionEx); add_handler(NtDuplicateObject); add_handler(NtQueryInformationThread); add_handler(NtQueryWnfStateNameInformation);