aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/hid/irs.cpp
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-12-24 19:20:43 -0500
committerLiam <byteslice@airmail.cc>2023-12-24 19:20:43 -0500
commit6bd1dfa8ccd8ca8e563fa307039f8d52d6e320d7 (patch)
tree59966aa2ac0bd9186f7358af41f3888cbf89ec16 /src/core/hle/service/hid/irs.cpp
parent1a1af26031e1f24b1806b38be79271f568078d96 (diff)
service: fetch objects from the client handle table
Diffstat (limited to 'src/core/hle/service/hid/irs.cpp')
-rw-r--r--src/core/hle/service/hid/irs.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/hle/service/hid/irs.cpp b/src/core/hle/service/hid/irs.cpp
index 39b9a4474b..008debfd1a 100644
--- a/src/core/hle/service/hid/irs.cpp
+++ b/src/core/hle/service/hid/irs.cpp
@@ -197,8 +197,7 @@ void IRS::RunImageTransferProcessor(HLERequestContext& ctx) {
const auto parameters{rp.PopRaw<Parameters>()};
const auto t_mem_handle{ctx.GetCopyHandle(0)};
- auto t_mem = system.ApplicationProcess()->GetHandleTable().GetObject<Kernel::KTransferMemory>(
- t_mem_handle);
+ auto t_mem = ctx.GetObjectFromHandle<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);
@@ -444,8 +443,7 @@ void IRS::RunImageTransferExProcessor(HLERequestContext& ctx) {
const auto parameters{rp.PopRaw<Parameters>()};
const auto t_mem_handle{ctx.GetCopyHandle(0)};
- auto t_mem = system.ApplicationProcess()->GetHandleTable().GetObject<Kernel::KTransferMemory>(
- t_mem_handle);
+ auto t_mem = ctx.GetObjectFromHandle<Kernel::KTransferMemory>(t_mem_handle);
LOG_INFO(Service_IRS,
"called, npad_type={}, npad_id={}, transfer_memory_size={}, "