diff options
author | Lioncash <mathew1800@gmail.com> | 2018-11-19 15:05:04 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-11-19 15:20:29 +0100 |
commit | 233e495c1411a813460ce71efb7be69ff73649ee (patch) | |
tree | 779b543b44f0f5ed7a2515d0d54e0d2082047253 /src/core/hle/kernel/svc.cpp | |
parent | kernel/shared_memory: Add a const qualified member function overload for GetPointer() (diff) | |
download | yuzu-233e495c1411a813460ce71efb7be69ff73649ee.tar yuzu-233e495c1411a813460ce71efb7be69ff73649ee.tar.gz yuzu-233e495c1411a813460ce71efb7be69ff73649ee.tar.bz2 yuzu-233e495c1411a813460ce71efb7be69ff73649ee.tar.lz yuzu-233e495c1411a813460ce71efb7be69ff73649ee.tar.xz yuzu-233e495c1411a813460ce71efb7be69ff73649ee.tar.zst yuzu-233e495c1411a813460ce71efb7be69ff73649ee.zip |
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
-rw-r--r-- | src/core/hle/kernel/svc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index 75dbfc31d..487e5f0fb 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp @@ -796,7 +796,7 @@ static ResultCode MapSharedMemory(Handle shared_memory_handle, VAddr addr, u64 s return ERR_INVALID_MEMORY_RANGE; } - return shared_memory->Map(current_process, addr, permissions_type, MemoryPermission::DontCare); + return shared_memory->Map(*current_process, addr, permissions_type, MemoryPermission::DontCare); } static ResultCode UnmapSharedMemory(Handle shared_memory_handle, VAddr addr, u64 size) { @@ -826,7 +826,7 @@ static ResultCode UnmapSharedMemory(Handle shared_memory_handle, VAddr addr, u64 return ERR_INVALID_MEMORY_RANGE; } - return shared_memory->Unmap(current_process, addr); + return shared_memory->Unmap(*current_process, addr); } /// Query process memory |