summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/am/am.cpp
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-12-25 01:20:43 +0100
committerLiam <byteslice@airmail.cc>2023-12-25 01:20:43 +0100
commit5165ed9efd6e6593b969ce560c952e074f4d9e06 (patch)
tree59966aa2ac0bd9186f7358af41f3888cbf89ec16 /src/core/hle/service/am/am.cpp
parentMerge pull request #12394 from liamwhite/per-process-memory (diff)
downloadyuzu-5165ed9efd6e6593b969ce560c952e074f4d9e06.tar
yuzu-5165ed9efd6e6593b969ce560c952e074f4d9e06.tar.gz
yuzu-5165ed9efd6e6593b969ce560c952e074f4d9e06.tar.bz2
yuzu-5165ed9efd6e6593b969ce560c952e074f4d9e06.tar.lz
yuzu-5165ed9efd6e6593b969ce560c952e074f4d9e06.tar.xz
yuzu-5165ed9efd6e6593b969ce560c952e074f4d9e06.tar.zst
yuzu-5165ed9efd6e6593b969ce560c952e074f4d9e06.zip
Diffstat (limited to 'src/core/hle/service/am/am.cpp')
-rw-r--r--src/core/hle/service/am/am.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp
index a266d7c21..dabec1119 100644
--- a/src/core/hle/service/am/am.cpp
+++ b/src/core/hle/service/am/am.cpp
@@ -1513,8 +1513,7 @@ void ILibraryAppletCreator::CreateTransferMemoryStorage(HLERequestContext& ctx)
return;
}
- auto transfer_mem =
- system.ApplicationProcess()->GetHandleTable().GetObject<Kernel::KTransferMemory>(handle);
+ auto transfer_mem = ctx.GetObjectFromHandle<Kernel::KTransferMemory>(handle);
if (transfer_mem.IsNull()) {
LOG_ERROR(Service_AM, "transfer_mem is a nullptr for handle={:08X}", handle);
@@ -1547,8 +1546,7 @@ void ILibraryAppletCreator::CreateHandleStorage(HLERequestContext& ctx) {
return;
}
- auto transfer_mem =
- system.ApplicationProcess()->GetHandleTable().GetObject<Kernel::KTransferMemory>(handle);
+ auto transfer_mem = ctx.GetObjectFromHandle<Kernel::KTransferMemory>(handle);
if (transfer_mem.IsNull()) {
LOG_ERROR(Service_AM, "transfer_mem is a nullptr for handle={:08X}", handle);