From 162952722efec953f000eb2b1da794c1975b99c6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Herv=C3=A9=20Poussineau?= Date: Fri, 18 Nov 2005 16:42:41 +0000 Subject: [PATCH] Prevent the reinstall of devices that use the NULL driver at each reboot svn path=/trunk/; revision=19324 --- reactos/ntoskrnl/io/pnpmgr.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/reactos/ntoskrnl/io/pnpmgr.c b/reactos/ntoskrnl/io/pnpmgr.c index 7feb2d61810..720b6a120d4 100644 --- a/reactos/ntoskrnl/io/pnpmgr.c +++ b/reactos/ntoskrnl/io/pnpmgr.c @@ -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)) -- 2.17.1