https://git.reactos.org/?p=reactos.git;a=commitdiff;h=4a93b0a4638e9dc14c555…
commit 4a93b0a4638e9dc14c555de10534099344f92504
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Fri Nov 18 16:17:30 2022 +0100
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Fri Nov 18 18:11:28 2022 +0100
[NTOS:IO] Show the captured/generated driver name in one failure path of
IoCreateDriver.
---
ntoskrnl/io/iomgr/driver.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/ntoskrnl/io/iomgr/driver.c b/ntoskrnl/io/iomgr/driver.c
index 8107c4906ed..c81e4714542 100644
--- a/ntoskrnl/io/iomgr/driver.c
+++ b/ntoskrnl/io/iomgr/driver.c
@@ -643,7 +643,7 @@ IopInitializeDriverModule(
driverObject->Flags &= ~DRVO_LEGACY_DRIVER;
}
- // Windows does this fixup - keep it for compatibility
+ /* Windows does this fixup, keep it for compatibility */
for (INT i = 0; i <= IRP_MJ_MAXIMUM_FUNCTION; i++)
{
/*
@@ -1695,13 +1695,13 @@ try_again:
if (!NT_SUCCESS(Status))
{
/* If it didn't work, then kill the object */
- DPRINT1("'%wZ' initialization failed, status (0x%08lx)\n",
DriverName, Status);
+ DPRINT1("'%wZ' initialization failed, status (0x%08lx)\n",
&LocalDriverName, Status);
ObMakeTemporaryObject(DriverObject);
ObDereferenceObject(DriverObject);
return Status;
}
- // Windows does this fixup - keep it for compatibility
+ /* Windows does this fixup, keep it for compatibility */
for (i = 0; i <= IRP_MJ_MAXIMUM_FUNCTION; i++)
{
/*