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.
This commit is contained in:
Elias Bachaalany
2025-01-10 11:27:04 -08:00
parent 22d21a3278
commit 0516c1ad87

View File

@@ -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<CONTEXT64> thread_context)
{
@@ -3403,6 +3408,7 @@ void syscall_dispatcher::add_handlers(std::map<std::string, syscall_handler>& ha
add_handler(NtAllocateVirtualMemory);
add_handler(NtQueryInformationProcess);
add_handler(NtSetInformationProcess);
add_handler(NtSetInformationVirtualMemory);
add_handler(NtFreeVirtualMemory);
add_handler(NtQueryVirtualMemory);
add_handler(NtOpenThreadToken);