diff options
| author | amlal <amlal@el-mahrouss-logic.com> | 2024-03-16 14:22:21 +0100 |
|---|---|---|
| committer | amlal <amlal@el-mahrouss-logic.com> | 2024-03-16 14:22:21 +0100 |
| commit | 55059428bfd6a18451bc1ed3ee64e7bb04c395cd (patch) | |
| tree | 02dd524a2249111e30d2208fd700fa72e31182db /Private/Source/ThreadLocalStorage.cxx | |
| parent | 8f9b5e08f53f6e49a1f4c6b20e17c54298da9c44 (diff) | |
HCR-14: See below.
- Pretty big modifications, add kernel mouse.
Signed-off-by: amlal <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Private/Source/ThreadLocalStorage.cxx')
| -rw-r--r-- | Private/Source/ThreadLocalStorage.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Private/Source/ThreadLocalStorage.cxx b/Private/Source/ThreadLocalStorage.cxx index 48e4e0a9..395b9dc6 100644 --- a/Private/Source/ThreadLocalStorage.cxx +++ b/Private/Source/ThreadLocalStorage.cxx @@ -25,7 +25,7 @@ using namespace HCore; * @return if the cookie is enabled. */ -Boolean hcore_tls_check(VoidPtr ptr) { +Boolean tls_check(VoidPtr ptr) { if (!ptr) return false; const char* _ptr = (const char*)ptr; @@ -41,10 +41,10 @@ Boolean hcore_tls_check(VoidPtr ptr) { * @param ptr * @return */ -EXTERN_C Void hcore_tls_check_syscall_impl(HCore::HAL::StackFramePtr stackPtr) noexcept { +EXTERN_C Void tls_check_syscall_impl(HCore::HAL::StackFramePtr stackPtr) noexcept { ThreadInformationBlock* tib = (ThreadInformationBlock*)stackPtr->Gs; - if (!hcore_tls_check(tib->Cookie)) { + if (!tls_check(tib->Cookie)) { kcout << "HCoreKrnl\\TLS: Verification failed, Crashing...\n"; ProcessManager::Shared().Leak().GetCurrent().Leak().Crash(); } |
