Prevent the reinstall of devices that use the NULL driver at each reboot
authorHervé Poussineau <hpoussin@reactos.org>
Fri, 18 Nov 2005 16:42:41 +0000 (16:42 +0000)
committerHervé Poussineau <hpoussin@reactos.org>
Fri, 18 Nov 2005 16:42:41 +0000 (16:42 +0000)
svn path=/trunk/; revision=19324

reactos/ntoskrnl/io/pnpmgr.c

index 7feb2d6..720b6a1 100644 (file)
@@ -2063,6 +2063,11 @@ IopActionInitChildServices(
    }
 #endif
 
+   if (DeviceNode->ServiceName.Length == 0)
+      /* We have a NULL driver for this device. We can't really do
+       * something with it, so state it is started... */
+      IopDeviceNodeSetFlag(DeviceNode, DNF_STARTED);
+
    if (!IopDeviceNodeHasFlag(DeviceNode, DNF_DISABLED) &&
        !IopDeviceNodeHasFlag(DeviceNode, DNF_ADDED) &&
        !IopDeviceNodeHasFlag(DeviceNode, DNF_STARTED))