Prevent the reinstall of devices that use the NULL driver at each reboot

svn path=/trunk/; revision=19324
This commit is contained in:
Hervé Poussineau 2005-11-18 16:42:41 +00:00
parent 93eec292ae
commit 162952722e

View 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))