summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-03-07 23:26:11 +0100
committerGitHub <noreply@github.com>2019-03-07 23:26:11 +0100
commitd26ee6e01ea02ca525d5032656563b11d6c3d28a (patch)
treec6c55cc79cb8c7621906f519f66f1ff55b6d1dc1 /src
parentMerge pull request #2196 from DarkLordZach/web-applet-esc (diff)
parentkernel/shared_memory: Get rid of the use of global accessor functions within Create() (diff)
downloadyuzu-d26ee6e01ea02ca525d5032656563b11d6c3d28a.tar
yuzu-d26ee6e01ea02ca525d5032656563b11d6c3d28a.tar.gz
yuzu-d26ee6e01ea02ca525d5032656563b11d6c3d28a.tar.bz2
yuzu-d26ee6e01ea02ca525d5032656563b11d6c3d28a.tar.lz
yuzu-d26ee6e01ea02ca525d5032656563b11d6c3d28a.tar.xz
yuzu-d26ee6e01ea02ca525d5032656563b11d6c3d28a.tar.zst
yuzu-d26ee6e01ea02ca525d5032656563b11d6c3d28a.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/kernel/shared_memory.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/hle/kernel/shared_memory.cpp b/src/core/hle/kernel/shared_memory.cpp
index 22d0c1dd5..62861da36 100644
--- a/src/core/hle/kernel/shared_memory.cpp
+++ b/src/core/hle/kernel/shared_memory.cpp
@@ -6,7 +6,6 @@
#include "common/assert.h"
#include "common/logging/log.h"
-#include "core/core.h"
#include "core/hle/kernel/errors.h"
#include "core/hle/kernel/kernel.h"
#include "core/hle/kernel/shared_memory.h"
@@ -34,8 +33,8 @@ SharedPtr<SharedMemory> SharedMemory::Create(KernelCore& kernel, Process* owner_
shared_memory->backing_block_offset = 0;
// Refresh the address mappings for the current process.
- if (Core::CurrentProcess() != nullptr) {
- Core::CurrentProcess()->VMManager().RefreshMemoryBlockMappings(
+ if (kernel.CurrentProcess() != nullptr) {
+ kernel.CurrentProcess()->VMManager().RefreshMemoryBlockMappings(
shared_memory->backing_block.get());
}
} else {