diff options
| author | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-08-01 18:25:14 +0200 |
|---|---|---|
| committer | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-08-01 18:25:14 +0200 |
| commit | 86e291120d124dec7244202b1766901a59dfb2e6 (patch) | |
| tree | 1aa92d3b8a05216941986cf2724ff20ad01b3884 /Kernel/Sources/Utils.cxx | |
| parent | f9579f444b1791d2b73d4d841569728fb203cb29 (diff) | |
[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 <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Kernel/Sources/Utils.cxx')
| -rw-r--r-- | Kernel/Sources/Utils.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
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) |
