mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-10 16:16:16 +00:00
ports: add noop port stub for WER (#689)
This commit is contained in:
@@ -15,6 +15,15 @@ namespace
|
|||||||
return STATUS_NOT_SUPPORTED;
|
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)
|
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();
|
return create_dns_resolver();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (port == u"\\WindowsErrorReportingServicePort")
|
||||||
|
{
|
||||||
|
return std::make_unique<noop_port>();
|
||||||
|
}
|
||||||
|
|
||||||
return std::make_unique<dummy_port>();
|
return std::make_unique<dummy_port>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user