Add stub for NtAreMappedFilesTheSame and modify NtSetInformationKey to return success

This commit is contained in:
Igor Pissolati
2025-04-23 01:03:42 -03:00
parent 16e7cac48a
commit 8dfcf2755c
3 changed files with 10 additions and 1 deletions

View File

@@ -259,6 +259,8 @@ namespace syscalls
NTSTATUS handle_NtUnmapViewOfSection(const syscall_context& c, handle process_handle, uint64_t base_address);
NTSTATUS handle_NtUnmapViewOfSectionEx(const syscall_context& c, handle process_handle, uint64_t base_address,
ULONG /*flags*/);
NTSTATUS handle_NtAreMappedFilesTheSame(const syscall_context& c, emulator_pointer address1,
emulator_pointer address2);
// syscalls/semaphore.cpp:
NTSTATUS handle_NtOpenSemaphore(const syscall_context& c, emulator_object<handle> semaphore_handle,
@@ -866,6 +868,7 @@ void syscall_dispatcher::add_handlers(std::map<std::string, syscall_handler>& ha
add_handler(NtFsControlFile);
add_handler(NtQueryFullAttributesFile);
add_handler(NtFlushBuffersFile);
add_handler(NtAreMappedFilesTheSame);
add_handler(NtUserGetProcessWindowStation);
add_handler(NtUserRegisterClassExWOW);
add_handler(NtUserUnregisterClass);

View File

@@ -239,7 +239,7 @@ namespace syscalls
NTSTATUS handle_NtSetInformationKey()
{
return STATUS_NOT_SUPPORTED;
return STATUS_SUCCESS;
}
NTSTATUS handle_NtEnumerateKey(const syscall_context& c, const handle key_handle, const ULONG index,

View File

@@ -304,4 +304,10 @@ namespace syscalls
{
return handle_NtUnmapViewOfSection(c, process_handle, base_address);
}
NTSTATUS handle_NtAreMappedFilesTheSame(const syscall_context& c, const emulator_pointer address1,
const emulator_pointer address2)
{
return STATUS_NOT_SUPPORTED;
}
}