diff --git a/src/windows-emulator/port.cpp b/src/windows-emulator/port.cpp index 2bbf9f81..7ca89cec 100644 --- a/src/windows-emulator/port.cpp +++ b/src/windows-emulator/port.cpp @@ -15,6 +15,15 @@ namespace return STATUS_NOT_SUPPORTED; } }; + + struct noop_port : port + { + NTSTATUS handle_request(windows_emulator& /*win_emu*/, const lpc_request_context& c) override + { + c.recv_buffer_length = 0; + return STATUS_SUCCESS; + } + }; } std::unique_ptr create_port(const std::u16string_view port) @@ -29,6 +38,11 @@ std::unique_ptr create_port(const std::u16string_view port) return create_dns_resolver(); } + if (port == u"\\WindowsErrorReportingServicePort") + { + return std::make_unique(); + } + return std::make_unique(); }