diff options
author | Lioncash <mathew1800@gmail.com> | 2018-11-21 01:46:31 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-11-21 01:49:07 +0100 |
commit | f17e122025ca4bb13853e2ab928234b05c485f5c (patch) | |
tree | 49469535c0a49620a227022c20d524de1dfe254d /src/core | |
parent | Merge pull request #1734 from lioncash/shared (diff) | |
download | yuzu-f17e122025ca4bb13853e2ab928234b05c485f5c.tar yuzu-f17e122025ca4bb13853e2ab928234b05c485f5c.tar.gz yuzu-f17e122025ca4bb13853e2ab928234b05c485f5c.tar.bz2 yuzu-f17e122025ca4bb13853e2ab928234b05c485f5c.tar.lz yuzu-f17e122025ca4bb13853e2ab928234b05c485f5c.tar.xz yuzu-f17e122025ca4bb13853e2ab928234b05c485f5c.tar.zst yuzu-f17e122025ca4bb13853e2ab928234b05c485f5c.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/hle/service/am/am.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp index fd14af1e7..7b4af9eb7 100644 --- a/src/core/hle/service/am/am.cpp +++ b/src/core/hle/service/am/am.cpp @@ -820,8 +820,8 @@ void ILibraryAppletCreator::CreateTransferMemoryStorage(Kernel::HLERequestContex return; } - const auto mem_begin = shared_mem->backing_block->begin() + shared_mem->backing_block_offset; - const auto mem_end = mem_begin + shared_mem->size; + const u8* mem_begin = shared_mem->GetPointer(); + const u8* mem_end = mem_begin + shared_mem->GetSize(); std::vector<u8> memory{mem_begin, mem_end}; IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |