diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp index 39802ce6a..054a7b964 100644 --- a/src/core/hle/service/service.cpp +++ b/src/core/hle/service/service.cpp @@ -47,7 +47,7 @@ Manager* g_manager = nullptr; ///< Service manager void Manager::AddService(std::shared_ptr service) { // TOOD(yuriks): Fix error reporting - m_port_map[service->GetPortName()] = Kernel::g_handle_table.Create(service->shared_from_this()).ValueOr(INVALID_HANDLE); + m_port_map[service->GetPortName()] = Kernel::g_handle_table.Create(service).ValueOr(INVALID_HANDLE); m_services.push_back(service); }