From 60c453b5bbee44fef06fa7964664b19384a348fe Mon Sep 17 00:00:00 2001 From: PTRCoder Date: Fri, 23 Aug 2024 17:21:11 +0200 Subject: [PATCH] Fixed argument --- src/core/hle/service/ac/ac.cpp | 2 +- src/core/hle/service/nwm/nwm_inf.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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");