Prevent the reinstall of devices that use the NULL driver at each reboot
Modified: trunk/reactos/ntoskrnl/io/pnpmgr.c

Modified: trunk/reactos/ntoskrnl/io/pnpmgr.c
--- trunk/reactos/ntoskrnl/io/pnpmgr.c	2005-11-18 11:49:51 UTC (rev 19323)
+++ trunk/reactos/ntoskrnl/io/pnpmgr.c	2005-11-18 16:42:41 UTC (rev 19324)
@@ -2063,6 +2063,11 @@
    }
 #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))