https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f2645e48b9aabe15642bd…
commit f2645e48b9aabe15642bd463a1a706929dc29d73
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Fri Jun 11 01:46:50 2021 +0200
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Thu Jun 17 00:35:22 2021 +0200
[NTOS:IO] Comment out (and explain why it is there) an unused LdrEntry assignment in IopInitializeBootDrivers(). CID 1237114
---
ntoskrnl/io/iomgr/driver.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/ntoskrnl/io/iomgr/driver.c b/ntoskrnl/io/iomgr/driver.c
index edb64baef7b..a5ab9904bb4 100644
--- a/ntoskrnl/io/iomgr/driver.c
+++ b/ntoskrnl/io/iomgr/driver.c
@@ -1050,8 +1050,14 @@ IopInitializeBootDrivers(VOID)
BOOT_DRIVER_LIST_ENTRY,
Link);
+ // FIXME: TODO: This LdrEntry is to be used in a special handling
+ // for SETUPLDR (a similar procedure is done on Windows), where
+ // the loader would, under certain conditions, be loaded in the
+ // SETUPLDR-specific code block below...
+#if 0
/* Get the driver loader entry */
LdrEntry = BootEntry->LdrEntry;
+#endif
/* Allocate our internal accounting structure */
DriverInfo = ExAllocatePoolWithTag(PagedPool,