https://git.reactos.org/?p=reactos.git;a=commitdiff;h=a8bcc8d7a1551c47bdacd…
commit a8bcc8d7a1551c47bdacdf544b89df9b3679aa7a
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Wed Mar 15 20:31:28 2023 +0100
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Sat Mar 18 03:42:31 2023 +0100
[NTOS:MM] Simplify definitions of MM_SYSLDR_NO_IMPORTS and MM_SYSLDR_BOOT_LOADED.
---
ntoskrnl/mm/ARM3/miarm.h | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/ntoskrnl/mm/ARM3/miarm.h b/ntoskrnl/mm/ARM3/miarm.h
index 60197cda74e..1776b69a918 100644
--- a/ntoskrnl/mm/ARM3/miarm.h
+++ b/ntoskrnl/mm/ARM3/miarm.h
@@ -197,13 +197,8 @@ extern const ULONG MmProtectToValue[32];
//
// Special values for LoadedImports
//
-#ifdef _WIN64
-#define MM_SYSLDR_NO_IMPORTS (PVOID)0xFFFFFFFFFFFFFFFEULL
-#define MM_SYSLDR_BOOT_LOADED (PVOID)0xFFFFFFFFFFFFFFFFULL
-#else
-#define MM_SYSLDR_NO_IMPORTS (PVOID)0xFFFFFFFE
-#define MM_SYSLDR_BOOT_LOADED (PVOID)0xFFFFFFFF
-#endif
+#define MM_SYSLDR_NO_IMPORTS ((PVOID)(ULONG_PTR)-2)
+#define MM_SYSLDR_BOOT_LOADED ((PVOID)(ULONG_PTR)-1)
#define MM_SYSLDR_SINGLE_ENTRY 0x1
//