- It may happen so, that the driver was loaded by the bootloader, but failed initiali...
authorAleksey Bragin <aleksey@reactos.org>
Fri, 2 Nov 2007 16:00:58 +0000 (16:00 +0000)
committerAleksey Bragin <aleksey@reactos.org>
Fri, 2 Nov 2007 16:00:58 +0000 (16:00 +0000)
svn path=/trunk/; revision=30071

reactos/ntoskrnl/io/pnpmgr/pnpmgr.c

index 87ac29d..0770453 100644 (file)
@@ -2516,7 +2516,8 @@ IopActionInitChildServices(PDEVICE_NODE DeviceNode,
          {
             /* STATUS_IMAGE_ALREADY_LOADED means this driver
                was loaded by the bootloader */
-            if (Status != STATUS_IMAGE_ALREADY_LOADED)
+            if ((Status != STATUS_IMAGE_ALREADY_LOADED) ||
+                (Status == STATUS_IMAGE_ALREADY_LOADED && !DriverObject))
             {
                /* Initialize the driver */
                Status = IopInitializeDriverModule(DeviceNode, ModuleObject,