From 86e291120d124dec7244202b1766901a59dfb2e6 Mon Sep 17 00:00:00 2001 From: Amlal EL Mahrouss Date: Thu, 1 Aug 2024 18:25:14 +0200 Subject: [IMP] newoskrnl: Add symbol for cred_construct_token, reworked ProcessHeap, new SCI.hxx for SCI and SCM. [IMP] newosldr: Loads the kernel correctly and can launch it, improved erorr handling. [META] newoskrnl, newosldr: Improved code and refactors. Signed-off-by: Amlal EL Mahrouss --- Kernel/Sources/Utils.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Kernel/Sources/Utils.cxx') diff --git a/Kernel/Sources/Utils.cxx b/Kernel/Sources/Utils.cxx index 152f28fa..2132e80d 100644 --- a/Kernel/Sources/Utils.cxx +++ b/Kernel/Sources/Utils.cxx @@ -11,6 +11,10 @@ namespace Kernel { Int rt_string_cmp(const Char* src, const Char* cmp, Size size) { + if (!cmp || + !src) + return 1; + Int32 counter = 0; for (Size index = 0; index < size; ++index) -- cgit v1.2.3