diff options
author | Liam <byteslice@airmail.cc> | 2023-02-13 17:21:43 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2023-02-14 01:03:12 +0100 |
commit | ceda2d280e8a3030c1e23083c5cea9158387fe4c (patch) | |
tree | 8041460840ed81d4cb74d87eecfb8fb720cdfa15 /src/core/hle/service/hid/irs.cpp | |
parent | kernel: use GetCurrentProcess (diff) | |
download | yuzu-ceda2d280e8a3030c1e23083c5cea9158387fe4c.tar yuzu-ceda2d280e8a3030c1e23083c5cea9158387fe4c.tar.gz yuzu-ceda2d280e8a3030c1e23083c5cea9158387fe4c.tar.bz2 yuzu-ceda2d280e8a3030c1e23083c5cea9158387fe4c.tar.lz yuzu-ceda2d280e8a3030c1e23083c5cea9158387fe4c.tar.xz yuzu-ceda2d280e8a3030c1e23083c5cea9158387fe4c.tar.zst yuzu-ceda2d280e8a3030c1e23083c5cea9158387fe4c.zip |
Diffstat (limited to 'src/core/hle/service/hid/irs.cpp')
-rw-r--r-- | src/core/hle/service/hid/irs.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/service/hid/irs.cpp b/src/core/hle/service/hid/irs.cpp index 52f402c56..3bd418e92 100644 --- a/src/core/hle/service/hid/irs.cpp +++ b/src/core/hle/service/hid/irs.cpp @@ -196,8 +196,8 @@ void IRS::RunImageTransferProcessor(Kernel::HLERequestContext& ctx) { const auto parameters{rp.PopRaw<Parameters>()}; const auto t_mem_handle{ctx.GetCopyHandle(0)}; - auto t_mem = - system.CurrentProcess()->GetHandleTable().GetObject<Kernel::KTransferMemory>(t_mem_handle); + auto t_mem = system.ApplicationProcess()->GetHandleTable().GetObject<Kernel::KTransferMemory>( + t_mem_handle); if (t_mem.IsNull()) { LOG_ERROR(Service_IRS, "t_mem is a nullptr for handle=0x{:08X}", t_mem_handle); @@ -445,8 +445,8 @@ void IRS::RunImageTransferExProcessor(Kernel::HLERequestContext& ctx) { const auto parameters{rp.PopRaw<Parameters>()}; const auto t_mem_handle{ctx.GetCopyHandle(0)}; - auto t_mem = - system.CurrentProcess()->GetHandleTable().GetObject<Kernel::KTransferMemory>(t_mem_handle); + auto t_mem = system.ApplicationProcess()->GetHandleTable().GetObject<Kernel::KTransferMemory>( + t_mem_handle); u8* transfer_memory = system.Memory().GetPointer(t_mem->GetSourceAddress()); |