diff options
Diffstat (limited to 'dev/ZKA/Sources/CodeMgr.cxx')
| -rw-r--r-- | dev/ZKA/Sources/CodeMgr.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dev/ZKA/Sources/CodeMgr.cxx b/dev/ZKA/Sources/CodeMgr.cxx index 1d4f4a6e..49968e73 100644 --- a/dev/ZKA/Sources/CodeMgr.cxx +++ b/dev/ZKA/Sources/CodeMgr.cxx @@ -14,10 +14,10 @@ namespace Kernel /// @note This sets up a new stack, anything on the main function that calls the Kernel will not be accessible. /// @param main the start of the process. /// @return if the process was started or not. - bool sched_execute_thread(MainKind main, const Char* processName) noexcept + bool sched_execute_thread(MainKind main, const Char* process_name) noexcept { if (!main) - return false; + return No; UserProcess proc; proc.SetImageStart(reinterpret_cast<VoidPtr>(main)); @@ -25,8 +25,8 @@ namespace Kernel proc.Kind = UserProcess::kExeKind; proc.StackSize = mib_cast(4); - rt_copy_memory((VoidPtr)processName, proc.Name, rt_string_len(processName)); + rt_copy_memory((VoidPtr)process_name, proc.Name, rt_string_len(process_name)); - return UserProcessScheduler::The().Add(proc) == kErrorSuccess; + return UserProcessScheduler::The().Add(proc) != 0; } } // namespace Kernel |
