mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-18 11:13:57 +00:00
Small fixes (#199)
This commit is contained in:
@@ -496,6 +496,11 @@ namespace syscalls
|
||||
return STATUS_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
NTSTATUS handle_NtCreateUserProcess()
|
||||
{
|
||||
return STATUS_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
NTSTATUS handle_NtAddAtomEx(const syscall_context& c, const uint64_t atom_name, const ULONG length,
|
||||
const emulator_object<RTL_ATOM> atom, const ULONG /*flags*/)
|
||||
{
|
||||
@@ -763,6 +768,7 @@ void syscall_dispatcher::add_handlers(std::map<std::string, syscall_handler>& ha
|
||||
add_handler(NtQueueApcThreadEx2);
|
||||
add_handler(NtQueueApcThreadEx);
|
||||
add_handler(NtQueueApcThread);
|
||||
add_handler(NtCreateUserProcess);
|
||||
|
||||
#undef add_handler
|
||||
}
|
||||
@@ -460,16 +460,6 @@ void windows_emulator::on_instruction_execution(const uint64_t address)
|
||||
log.print(is_interesting_call ? color::yellow : color::dark_gray,
|
||||
"Executing function: %s - %s (0x%" PRIx64 ") via (0x%" PRIx64 ") %s\n", binary->name.c_str(),
|
||||
export_entry->second.c_str(), address, return_address, mod_name);
|
||||
|
||||
if (export_entry->second == "MessageBoxW")
|
||||
{
|
||||
log.log("--> %s\n",
|
||||
u16_to_u8(read_string<char16_t>(this->memory, this->emu().reg(x64_register::rdx))).c_str());
|
||||
}
|
||||
else if (export_entry->second == "MessageBoxA")
|
||||
{
|
||||
log.log("--> %s\n", read_string<char>(this->memory, this->emu().reg(x64_register::rdx)).c_str());
|
||||
}
|
||||
}
|
||||
else if (address == binary->entry_point)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user