summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/kernel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
-rw-r--r--src/core/hle/kernel/kernel.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp
index a3715e555..b5c98b249 100644
--- a/src/core/hle/kernel/kernel.cpp
+++ b/src/core/hle/kernel/kernel.cpp
@@ -115,8 +115,7 @@ SharedPtr<Object> HandleTable::GetGeneric(Handle handle) const {
115 if (handle == CurrentThread) { 115 if (handle == CurrentThread) {
116 return GetCurrentThread(); 116 return GetCurrentThread();
117 } else if (handle == CurrentProcess) { 117 } else if (handle == CurrentProcess) {
118 LOG_ERROR(Kernel, "Current process (%08X) pseudo-handle not supported", CurrentProcess); 118 return g_current_process;
119 return nullptr;
120 } 119 }
121 120
122 if (!IsValid(handle)) { 121 if (!IsValid(handle)) {
@@ -139,6 +138,9 @@ void Init() {
139 Kernel::TimersInit(); 138 Kernel::TimersInit();
140 139
141 Object::next_object_id = 0; 140 Object::next_object_id = 0;
141 // TODO(Subv): Start the process ids from 10 for now, as lower PIDs are
142 // reserved for low-level services
143 Process::next_process_id = 10;
142} 144}
143 145
144/// Shutdown the kernel 146/// Shutdown the kernel