summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-11-20 19:46:31 -0500
committerLioncash <mathew1800@gmail.com>2018-11-20 19:49:07 -0500
commitf17e122025ca4bb13853e2ab928234b05c485f5c (patch)
tree49469535c0a49620a227022c20d524de1dfe254d /src
parentaa7e53ab5c21be5960c8c4430a493e0016de6679 (diff)
am: Correct build failure
The interface for shared memory was changed, but another commit was merged that relied on the (previously public) internals of SharedMemory. This amends that discrepancy.
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/am/am.cpp4
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};