Skip to content

Commit

Permalink
Registry and logging
Browse files Browse the repository at this point in the history
  • Loading branch information
momo5502 committed Nov 5, 2024
1 parent 2367db1 commit ba86d9f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/windows-emulator/syscalls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ namespace

NTSTATUS handle_NtNotifyChangeKey()
{
return STATUS_NOT_SUPPORTED;
return STATUS_SUCCESS;
}

NTSTATUS handle_NtSetInformationThread(const syscall_context& c, const uint64_t thread_handle,
Expand Down Expand Up @@ -2033,6 +2033,8 @@ namespace
const auto attributes = object_attributes.read();
auto filename = read_unicode_string(c.emu, attributes.ObjectName);

c.win_emu.logger.print(color::dark_gray, "--> Opening file: %S\n", filename.c_str());

if (filename == L"\\Device\\ConDrv\\Server")
{
file_handle.write(CONSOLE_SERVER.bits);
Expand Down

0 comments on commit ba86d9f

Please sign in to comment.