https://git.reactos.org/?p=reactos.git;a=commitdiff;h=4c6f7c01e559d43cff7ee0e2686891eac4ba8b0c

commit 4c6f7c01e559d43cff7ee0e2686891eac4ba8b0c
Author:     Hermès Bélusca-Maïto <[email protected]>
AuthorDate: Wed Apr 5 01:39:32 2023 +0200
Commit:     Hermès Bélusca-Maïto <[email protected]>
CommitDate: Wed Apr 5 01:39:32 2023 +0200

    [NTOS:IO] Avoid magic value in LdrProcessDriverModule.
---
 ntoskrnl/io/iomgr/driver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ntoskrnl/io/iomgr/driver.c b/ntoskrnl/io/iomgr/driver.c
index 498b09ea40f..82fc3c62e15 100644
--- a/ntoskrnl/io/iomgr/driver.c
+++ b/ntoskrnl/io/iomgr/driver.c
@@ -710,7 +710,7 @@ LdrProcessDriverModule(PLDR_DATA_TABLE_ENTRY LdrEntry,
 {
     NTSTATUS Status;
     UNICODE_STRING BaseName, BaseDirectory;
-    PLOAD_IMPORTS LoadedImports = (PVOID)-2;
+    PLOAD_IMPORTS LoadedImports = MM_SYSLDR_NO_IMPORTS;
     PCHAR MissingApiName, Buffer;
     PWCHAR MissingDriverName;
     PVOID DriverBase = LdrEntry->DllBase;

Reply via email to