Kernel: pass ref to port
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user