summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/svc.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-11-21 01:13:30 +0100
committerGitHub <noreply@github.com>2018-11-21 01:13:30 +0100
commitaa7e53ab5c21be5960c8c4430a493e0016de6679 (patch)
tree8a1889793c810770c9d7bb84be085f8296a4c502 /src/core/hle/kernel/svc.cpp
parentMerge pull request #1733 from lioncash/ldr (diff)
parentkernel/shared_memory: Make Map() and Unmap() take the target process by reference rather than as a pointer (diff)
downloadyuzu-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.cpp4
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