diff options
author | bunnei <bunneidev@gmail.com> | 2018-11-21 01:13:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-21 01:13:30 +0100 |
commit | aa7e53ab5c21be5960c8c4430a493e0016de6679 (patch) | |
tree | 8a1889793c810770c9d7bb84be085f8296a4c502 /src/core/hle/kernel/svc.cpp | |
parent | Merge pull request #1733 from lioncash/ldr (diff) | |
parent | kernel/shared_memory: Make Map() and Unmap() take the target process by reference rather than as a pointer (diff) | |
download | yuzu-aa7e53ab5c21be5960c8c4430a493e0016de6679.tar yuzu-aa7e53ab5c21be5960c8c4430a493e0016de6679.tar.gz yuzu-aa7e53ab5c21be5960c8c4430a493e0016de6679.tar.bz2 yuzu-aa7e53ab5c21be5960c8c4430a493e0016de6679.tar.lz yuzu-aa7e53ab5c21be5960c8c4430a493e0016de6679.tar.xz yuzu-aa7e53ab5c21be5960c8c4430a493e0016de6679.tar.zst yuzu-aa7e53ab5c21be5960c8c4430a493e0016de6679.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 51c367de7..b8b6b4d49 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp @@ -789,7 +789,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) { @@ -819,7 +819,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 |