diff options
author | Lioncash <mathew1800@gmail.com> | 2019-04-03 22:35:14 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-04-03 23:49:21 +0200 |
commit | ea8f633dc088ca5e40d3391d1b826c753a94bf26 (patch) | |
tree | eb0c33347f98e7adf52511f17f78ef1c43bdfc64 /src | |
parent | kernel/transfer_memory: Add accessors to data and sizes (diff) | |
download | yuzu-ea8f633dc088ca5e40d3391d1b826c753a94bf26.tar yuzu-ea8f633dc088ca5e40d3391d1b826c753a94bf26.tar.gz yuzu-ea8f633dc088ca5e40d3391d1b826c753a94bf26.tar.bz2 yuzu-ea8f633dc088ca5e40d3391d1b826c753a94bf26.tar.lz yuzu-ea8f633dc088ca5e40d3391d1b826c753a94bf26.tar.xz yuzu-ea8f633dc088ca5e40d3391d1b826c753a94bf26.tar.zst yuzu-ea8f633dc088ca5e40d3391d1b826c753a94bf26.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/core/hle/service/am/am.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp index 9c44e27c6..7d3e0e545 100644 --- a/src/core/hle/service/am/am.cpp +++ b/src/core/hle/service/am/am.cpp @@ -13,7 +13,7 @@ #include "core/hle/kernel/kernel.h" #include "core/hle/kernel/process.h" #include "core/hle/kernel/readable_event.h" -#include "core/hle/kernel/shared_memory.h" +#include "core/hle/kernel/transfer_memory.h" #include "core/hle/kernel/writable_event.h" #include "core/hle/service/acc/profile_manager.h" #include "core/hle/service/am/am.h" @@ -907,19 +907,19 @@ void ILibraryAppletCreator::CreateTransferMemoryStorage(Kernel::HLERequestContex rp.SetCurrentOffset(3); const auto handle{rp.Pop<Kernel::Handle>()}; - const auto shared_mem = - Core::System::GetInstance().CurrentProcess()->GetHandleTable().Get<Kernel::SharedMemory>( + const auto transfer_mem = + Core::System::GetInstance().CurrentProcess()->GetHandleTable().Get<Kernel::TransferMemory>( handle); - if (shared_mem == nullptr) { + if (transfer_mem == nullptr) { LOG_ERROR(Service_AM, "shared_mem is a nullpr for handle={:08X}", handle); IPC::ResponseBuilder rb{ctx, 2}; rb.Push(ResultCode(-1)); return; } - const u8* mem_begin = shared_mem->GetPointer(); - const u8* mem_end = mem_begin + shared_mem->GetSize(); + const u8* const mem_begin = transfer_mem->GetPointer(); + const u8* const mem_end = mem_begin + transfer_mem->GetSize(); std::vector<u8> memory{mem_begin, mem_end}; IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |