summaryrefslogtreecommitdiffhomepage
path: root/src/kernel/CFKit
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/CFKit')
-rw-r--r--src/kernel/CFKit/Property.h2
-rw-r--r--src/kernel/CFKit/Utils.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/kernel/CFKit/Property.h b/src/kernel/CFKit/Property.h
index 1dab7b71..f2b58c1d 100644
--- a/src/kernel/CFKit/Property.h
+++ b/src/kernel/CFKit/Property.h
@@ -20,7 +20,7 @@ namespace Kernel::CF {
using PropertyId = UIntPtr;
/// @brief Kernel property class.
-/// @example /prop/smp_max or /prop/kern_ver
+/// @note /prop/smp_max or /prop/kern_ver are properties.
class Property {
public:
Property();
diff --git a/src/kernel/CFKit/Utils.h b/src/kernel/CFKit/Utils.h
index 247ad5fb..41dc5a0d 100644
--- a/src/kernel/CFKit/Utils.h
+++ b/src/kernel/CFKit/Utils.h
@@ -4,7 +4,7 @@
#include <KernelKit/MSDOS.h>
#include <KernelKit/PE.h>
-/// @brief CFKit
+/// @brief CFKit namespace.
namespace Kernel::CF {
/// @brief Finds the PE header inside the blob.
inline auto ldr_find_exec_header(DosHeaderPtr ptrDos) -> LDR_EXEC_HEADER_PTR {
@@ -14,7 +14,7 @@ inline auto ldr_find_exec_header(DosHeaderPtr ptrDos) -> LDR_EXEC_HEADER_PTR {
if (ptrDos->eMagic[1] != kMagMz1) return nullptr;
-#ifdef __NE_AMD64__
+#if defined(__NE_AMD64__)
return (LDR_EXEC_HEADER_PTR) (VoidPtr) (&ptrDos->eLfanew + 1);
#else
return (LDR_EXEC_HEADER_PTR) (VoidPtr) (&ptrDos->eLfanew);