ports: add noop port stub for WER (#689)

This commit is contained in:
Maurice Heumann
2026-01-06 10:22:49 +01:00
committed by GitHub

View File

@@ -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<port> create_port(const std::u16string_view port)
@@ -29,6 +38,11 @@ std::unique_ptr<port> create_port(const std::u16string_view port)
return create_dns_resolver();
}
if (port == u"\\WindowsErrorReportingServicePort")
{
return std::make_unique<noop_port>();
}
return std::make_unique<dummy_port>();
}