From 0516c1ad87aa524e2206e5ed8e8af72005ee7755 Mon Sep 17 00:00:00 2001 From: Elias Bachaalany Date: Fri, 10 Jan 2025 11:27:04 -0800 Subject: [PATCH] added missing syscall so that Windows 10 emulation works For now, this is reports as not implemented but it seems to make the OS happy. --- src/windows-emulator/syscalls.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/windows-emulator/syscalls.cpp b/src/windows-emulator/syscalls.cpp index c9d94764..857945a9 100644 --- a/src/windows-emulator/syscalls.cpp +++ b/src/windows-emulator/syscalls.cpp @@ -3360,6 +3360,11 @@ namespace return STATUS_SUCCESS; } + NTSTATUS handle_NtSetInformationVirtualMemory(const syscall_context&) + { + return STATUS_NOT_SUPPORTED; + } + NTSTATUS handle_NtGetContextThread(const syscall_context& c, handle thread_handle, const emulator_object thread_context) { @@ -3403,6 +3408,7 @@ void syscall_dispatcher::add_handlers(std::map& ha add_handler(NtAllocateVirtualMemory); add_handler(NtQueryInformationProcess); add_handler(NtSetInformationProcess); + add_handler(NtSetInformationVirtualMemory); add_handler(NtFreeVirtualMemory); add_handler(NtQueryVirtualMemory); add_handler(NtOpenThreadToken);