summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/svc/svc_shared_memory.cpp
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-02-13 16:44:41 +0100
committerLiam <byteslice@airmail.cc>2023-02-13 17:05:14 +0100
commit4363ca304afb0b615481c7d49e863a2c429cc5c6 (patch)
tree80dbba25e98a8493944993f8992326b797305088 /src/core/hle/kernel/svc/svc_shared_memory.cpp
parentMerge pull request #9784 from m-HD/master (diff)
downloadyuzu-4363ca304afb0b615481c7d49e863a2c429cc5c6.tar
yuzu-4363ca304afb0b615481c7d49e863a2c429cc5c6.tar.gz
yuzu-4363ca304afb0b615481c7d49e863a2c429cc5c6.tar.bz2
yuzu-4363ca304afb0b615481c7d49e863a2c429cc5c6.tar.lz
yuzu-4363ca304afb0b615481c7d49e863a2c429cc5c6.tar.xz
yuzu-4363ca304afb0b615481c7d49e863a2c429cc5c6.tar.zst
yuzu-4363ca304afb0b615481c7d49e863a2c429cc5c6.zip
Diffstat (limited to 'src/core/hle/kernel/svc/svc_shared_memory.cpp')
-rw-r--r--src/core/hle/kernel/svc/svc_shared_memory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/svc/svc_shared_memory.cpp b/src/core/hle/kernel/svc/svc_shared_memory.cpp
index 40d6260e3..18e0dc904 100644
--- a/src/core/hle/kernel/svc/svc_shared_memory.cpp
+++ b/src/core/hle/kernel/svc/svc_shared_memory.cpp
@@ -42,7 +42,7 @@ Result MapSharedMemory(Core::System& system, Handle shmem_handle, VAddr address,
R_UNLESS(IsValidSharedMemoryPermission(map_perm), ResultInvalidNewMemoryPermission);
// Get the current process.
- auto& process = *system.Kernel().CurrentProcess();
+ auto& process = GetCurrentProcess(system.Kernel());
auto& page_table = process.PageTable();
// Get the shared memory.
@@ -75,7 +75,7 @@ Result UnmapSharedMemory(Core::System& system, Handle shmem_handle, VAddr addres
R_UNLESS((address < address + size), ResultInvalidCurrentMemory);
// Get the current process.
- auto& process = *system.Kernel().CurrentProcess();
+ auto& process = GetCurrentProcess(system.Kernel());
auto& page_table = process.PageTable();
// Get the shared memory.