diff options
| author | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-08-30 20:46:01 +0200 |
|---|---|---|
| committer | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-08-30 20:46:01 +0200 |
| commit | 43bac17a2986ac2ea86e9d70c61268fa7e90ca4e (patch) | |
| tree | d259814b8c388e87bb02860405ff668a92434c44 /dev/ZKA/Sources/PEFCodeManager.cxx | |
| parent | 8a4f0e988a901e4fce5d32e3d5f9dbdc5f309863 (diff) | |
Fixed many issues with the kernel, and refactored it.
Signed-off-by: Amlal EL Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'dev/ZKA/Sources/PEFCodeManager.cxx')
| -rw-r--r-- | dev/ZKA/Sources/PEFCodeManager.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/dev/ZKA/Sources/PEFCodeManager.cxx b/dev/ZKA/Sources/PEFCodeManager.cxx index 1b4adcfc..cecc4820 100644 --- a/dev/ZKA/Sources/PEFCodeManager.cxx +++ b/dev/ZKA/Sources/PEFCodeManager.cxx @@ -79,12 +79,12 @@ namespace Kernel return; } - kcout << "CodeManagerPEF: Warning: Executable format error!\r"; fBad = true; if (fCachedBlob) mm_delete_ke_heap(fCachedBlob); + kcout << "CodeManagerPEF: Warning: Executable format error!\r"; fCachedBlob = nullptr; } @@ -200,11 +200,9 @@ namespace Kernel return false; PROCESS_HEADER_BLOCK proc(errOrStart.Leak().Leak()); - Ref<PROCESS_HEADER_BLOCK> refProc = proc; - proc.Kind = procKind; - return ProcessScheduler::The().Leak().Add(refProc); + return ProcessScheduler::The().Add(proc); } } // namespace Utils |
