Fixed kernel reference

This commit is contained in:
PTRCoder 2024-08-23 15:34:32 +02:00
parent 6238f52819
commit babec1bb5c
2 changed files with 2 additions and 2 deletions

View File

@ -218,7 +218,7 @@ void Module::Interface::ScanAPs(Kernel::HLERequestContext& ctx) {
cmd_buf[18] = (size << 4) | 12;
cmd_buf[19] = buffer_id;
Kernel::KernelSystem kernel = ctx.kernel;
Kernel::KernelSystem kernel = Core::System::GetInstance()::GetKernel();
std::shared_ptr<Kernel::Thread> thread = ctx.ClientThread();
auto current_process = thread->owner_process.lock();

View File

@ -27,7 +27,7 @@ void NWM_INF::RecvBeaconBroadcastData(Kernel::HLERequestContext& ctx) {
cmd_buf[i] = ctx_data[i - 1];
}
Kernel::KernelSystem kernel = ctx.kernel;
Kernel::KernelSystem kernel = Core::System::GetInstance()::GetKernel();
std::shared_ptr<Kernel::Thread> thread = ctx.ClientThread();
auto current_process = thread->owner_process.lock();
auto context =