diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-08-24 18:06:32 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-08-24 18:06:32 +0200 |
| commit | 529945c987c5107d84b627a56627df6dd40dd3da (patch) | |
| tree | 33ed7c7e3795e091fa85daf5ef3c37a74618d9d1 /dev/ZKA/HALKit | |
| parent | fdc8aaab2ad3c2f2f3f4bb4ffb71bc2d797366aa (diff) | |
[FIX] Kernel: Fix scheduler code and improved it's inner workings.
[FIX] DLLMain now spins scheduler when it's done about showing the setup
window.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/ZKA/HALKit')
| -rw-r--r-- | dev/ZKA/HALKit/AMD64/HalPageAlloc.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dev/ZKA/HALKit/AMD64/HalPageAlloc.cxx b/dev/ZKA/HALKit/AMD64/HalPageAlloc.cxx index 87dd1d24..f389dd80 100644 --- a/dev/ZKA/HALKit/AMD64/HalPageAlloc.cxx +++ b/dev/ZKA/HALKit/AMD64/HalPageAlloc.cxx @@ -81,6 +81,12 @@ namespace Kernel vmh_header->Magic == cVMHMagic) { vmh_header = traits.Next(vmh_header); + + if (vmh_header == reinterpret_cast<VoidPtr>(kBadPtr)) + { + ke_stop(RUNTIME_CHECK_POINTER); + return nullptr; + } } vmh_header->Magic = cVMHMagic; |
