summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/svc.cpp
diff options
context:
space:
mode:
authorJens Schmer <jens.schmer+git@gmail.com>2018-12-10 19:42:01 +0100
committerJens Schmer <jens.schmer+git@gmail.com>2018-12-12 17:25:56 +0100
commitae390ad5a2571cec79d4a7a7b175ac4738e6c748 (patch)
tree4197e8decd64b3974add609d6bc9983030c3ad96 /src/core/hle/kernel/svc.cpp
parentMerge pull request #1891 from DarkLordZach/istorage-getsize (diff)
downloadyuzu-ae390ad5a2571cec79d4a7a7b175ac4738e6c748.tar
yuzu-ae390ad5a2571cec79d4a7a7b175ac4738e6c748.tar.gz
yuzu-ae390ad5a2571cec79d4a7a7b175ac4738e6c748.tar.bz2
yuzu-ae390ad5a2571cec79d4a7a7b175ac4738e6c748.tar.lz
yuzu-ae390ad5a2571cec79d4a7a7b175ac4738e6c748.tar.xz
yuzu-ae390ad5a2571cec79d4a7a7b175ac4738e6c748.tar.zst
yuzu-ae390ad5a2571cec79d4a7a7b175ac4738e6c748.zip
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
-rw-r--r--src/core/hle/kernel/svc.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp
index f43c7201c..8b0b3671a 100644
--- a/src/core/hle/kernel/svc.cpp
+++ b/src/core/hle/kernel/svc.cpp
@@ -1487,9 +1487,9 @@ static ResultCode CreateTransferMemory(Handle* handle, VAddr addr, u64 size, u32
}
auto& kernel = Core::System::GetInstance().Kernel();
- auto& handle_table = Core::CurrentProcess()->GetHandleTable();
- const auto shared_mem_handle = SharedMemory::Create(
- kernel, handle_table.Get<Process>(CurrentProcess), size, perms, perms, addr);
+ auto process = kernel.CurrentProcess();
+ auto& handle_table = process->GetHandleTable();
+ const auto shared_mem_handle = SharedMemory::Create(kernel, process, size, perms, perms, addr);
CASCADE_RESULT(*handle, handle_table.Create(shared_mem_handle));
return RESULT_SUCCESS;
@@ -1599,10 +1599,9 @@ static ResultCode CreateSharedMemory(Handle* handle, u64 size, u32 local_permiss
}
auto& kernel = Core::System::GetInstance().Kernel();
- auto& handle_table = Core::CurrentProcess()->GetHandleTable();
- auto shared_mem_handle =
- SharedMemory::Create(kernel, handle_table.Get<Process>(KernelHandle::CurrentProcess), size,
- local_perms, remote_perms);
+ auto process = kernel.CurrentProcess();
+ auto& handle_table = process->GetHandleTable();
+ auto shared_mem_handle = SharedMemory::Create(kernel, process, size, local_perms, remote_perms);
CASCADE_RESULT(*handle, handle_table.Create(shared_mem_handle));
return RESULT_SUCCESS;