From 320a82bb5d2164faa1f618fd994208effcd7319a Mon Sep 17 00:00:00 2001 From: PTRCoder Date: Fri, 23 Aug 2024 15:05:24 +0200 Subject: [PATCH] Potential fix for calling NWM_UDS version --- src/core/hle/service/nwm/nwm_inf.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/hle/service/nwm/nwm_inf.cpp b/src/core/hle/service/nwm/nwm_inf.cpp index 32ae85162..497075325 100644 --- a/src/core/hle/service/nwm/nwm_inf.cpp +++ b/src/core/hle/service/nwm/nwm_inf.cpp @@ -26,8 +26,12 @@ void NWM_INF::RecvBeaconBroadcastData(Kernel::HLERequestContext& ctx) { for (i = 17; i <= 20; i++) { cmd_buf[i] = ctx_data[i - 1]; } + + Kernel::KernelSystem kernel = ctx.kernel; + std::shared_ptr thread = ctx.ClientThread(); + auto current_process = thread->owner_process.lock(); auto context = - std::make_shared(kernel, SharedFrom(this), thread); + std::make_shared(kernel, SharedFrom(this), /* TODO */); context->PopulateFromIncomingCommandBuffer(cmd_buf.data(), current_process); auto nwm_uds = Core::System::GetInstance().ServiceManager().GetService("nwm::UDS");