summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/kernel.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-04-09 19:25:54 +0200
committerLioncash <mathew1800@gmail.com>2019-04-12 04:11:40 +0200
commitf2331a804a2fa300d9a7dc0d012e3242b7accdaf (patch)
treed7f61aa201effed9e37fc07c626218759fc75288 /src/core/hle/kernel/kernel.cpp
parentMerge pull request #2235 from ReinUsesLisp/spirv-decompiler (diff)
downloadyuzu-f2331a804a2fa300d9a7dc0d012e3242b7accdaf.tar
yuzu-f2331a804a2fa300d9a7dc0d012e3242b7accdaf.tar.gz
yuzu-f2331a804a2fa300d9a7dc0d012e3242b7accdaf.tar.bz2
yuzu-f2331a804a2fa300d9a7dc0d012e3242b7accdaf.tar.lz
yuzu-f2331a804a2fa300d9a7dc0d012e3242b7accdaf.tar.xz
yuzu-f2331a804a2fa300d9a7dc0d012e3242b7accdaf.tar.zst
yuzu-f2331a804a2fa300d9a7dc0d012e3242b7accdaf.zip
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
-rw-r--r--src/core/hle/kernel/kernel.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp
index 4d58e7c69..8539fabe4 100644
--- a/src/core/hle/kernel/kernel.cpp
+++ b/src/core/hle/kernel/kernel.cpp
@@ -182,7 +182,12 @@ void KernelCore::AppendNewProcess(SharedPtr<Process> process) {
void KernelCore::MakeCurrentProcess(Process* process) {
impl->current_process = process;
- Memory::SetCurrentPageTable(&process->VMManager().page_table);
+
+ if (process == nullptr) {
+ return;
+ }
+
+ Memory::SetCurrentPageTable(*process);
}
Process* KernelCore::CurrentProcess() {