Fixed wrong arguments

This commit is contained in:
PTRCoder 2024-08-23 16:53:56 +02:00
parent 13f32bd384
commit 4b3ac391d8
2 changed files with 4 additions and 4 deletions

View File

@ -229,14 +229,14 @@ void Module::Interface::ScanAPs(Kernel::HLERequestContext& ctx) {
auto nwm_inf =
Core::System::GetInstance().ServiceManager().GetService<Service::NWM::NWM_INF>("nwm::INF");
nwm_inf->HandleSyncRequest(context);
nwm_inf->HandleSyncRequest(*context);
// Response should be
// 0: Header Code (ignored)
// 1: Result Code (Success/Unknown/etc.)
// 2: ¿Parsed? beacon data
IPC::RequestBuilder rb = rp.MakeBuilder(1, 2);
IPC::RequestParser rp2(context);
IPC::RequestParser rp2(*context);
rb.Push(rp2.Pop<u32>());
rb.PushMappedBuffer(rp2.PopMappedBuffer());
LOG_WARNING(Service_AC, "(STUBBED) called");

View File

@ -36,9 +36,9 @@ void NWM_INF::RecvBeaconBroadcastData(Kernel::HLERequestContext& ctx) {
context->PopulateFromIncomingCommandBuffer(cmd_buf.data(), current_process);
auto nwm_uds = Core::System::GetInstance().ServiceManager().GetService<Service::NWM::NWM_UDS>("nwm::UDS");
nwm_uds->HandleSyncRequest(context);
nwm_uds->HandleSyncRequest(*context);
IPC::RequestParser rp2(context);
IPC::RequestParser rp2(*context);
IPC::RequestBuilder rb = rp.MakeBuilder(1, 2);
rb.Push(rp2.Pop<u32>());