From 4a93b0a4638e9dc14c555de10534099344f92504 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Fri, 18 Nov 2022 16:17:30 +0100 Subject: [PATCH] [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++) { /*