diff --git a/src/core/hle/service/ac/ac.cpp b/src/core/hle/service/ac/ac.cpp index 86c98336d..ea4afb97f 100644 --- a/src/core/hle/service/ac/ac.cpp +++ b/src/core/hle/service/ac/ac.cpp @@ -225,7 +225,7 @@ void Module::Interface::ScanAPs(Kernel::HLERequestContext& ctx) { auto context = std::make_shared(Core::System::GetInstance().Kernel(), - SharedFrom(this), thread); + ctx.Session(), thread); context->PopulateFromIncomingCommandBuffer(cmd_buf.data(), current_process); auto nwm_inf = diff --git a/src/core/hle/service/nwm/nwm_inf.cpp b/src/core/hle/service/nwm/nwm_inf.cpp index 7784acf1e..4880dc4c7 100644 --- a/src/core/hle/service/nwm/nwm_inf.cpp +++ b/src/core/hle/service/nwm/nwm_inf.cpp @@ -33,7 +33,7 @@ void NWM_INF::RecvBeaconBroadcastData(Kernel::HLERequestContext& ctx) { auto current_process = thread->owner_process.lock(); auto context = std::make_shared(Core::System::GetInstance().Kernel(), - SharedFrom(this), thread); + ctx.Session(), thread); context->PopulateFromIncomingCommandBuffer(cmd_buf.data(), current_process); auto nwm_uds = Core::System::GetInstance().ServiceManager().GetService("nwm::UDS");