Kernel: pass ref to port
This commit is contained in:
parent
c141657d83
commit
1213a298df
12 changed files with 37 additions and 25 deletions
|
@ -1119,7 +1119,7 @@ static ResultCode CreatePort(Handle* server_port, Handle* client_port, VAddr nam
|
|||
// TODO(Subv): Implement named ports.
|
||||
ASSERT_MSG(name_address == 0, "Named ports are currently unimplemented");
|
||||
|
||||
auto ports = ServerPort::CreatePortPair(max_sessions);
|
||||
auto ports = Core::System::GetInstance().Kernel().CreatePortPair(max_sessions);
|
||||
CASCADE_RESULT(*client_port,
|
||||
g_handle_table.Create(std::move(std::get<SharedPtr<ClientPort>>(ports))));
|
||||
// Note: The 3DS kernel also leaks the client port handle if the server port handle fails to be
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue