From 9b42ebfbcc4bcc6aad720ede9bafab19bfc216d9 Mon Sep 17 00:00:00 2001 From: Dmitry Gorbachev Date: Mon, 23 Feb 2009 13:17:07 +0000 Subject: [PATCH] Call IopEnumerateDevice() later, after IopCreateArcNames(). svn path=/trunk/; revision=39721 --- reactos/ntoskrnl/io/iomgr/iomgr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/ntoskrnl/io/iomgr/iomgr.c b/reactos/ntoskrnl/io/iomgr/iomgr.c index 0c481f5b569..18af7d874a6 100644 --- a/reactos/ntoskrnl/io/iomgr/iomgr.c +++ b/reactos/ntoskrnl/io/iomgr/iomgr.c @@ -496,9 +496,6 @@ IoInitSystem(IN PLOADER_PARAMETER_BLOCK LoaderBlock) /* Call back drivers that asked for */ IopReinitializeBootDrivers(); - /* Initialize PnP root relations */ - IopEnumerateDevice(IopRootDeviceNode->PhysicalDeviceObject); - /* Check if this was a ramdisk boot */ if (!_strnicmp(LoaderBlock->ArcBootDeviceName, "ramdisk(0)", 10)) { @@ -512,6 +509,9 @@ IoInitSystem(IN PLOADER_PARAMETER_BLOCK LoaderBlock) /* Mark the system boot partition */ if (!IopMarkBootPartition(LoaderBlock)) return FALSE; + /* Initialize PnP root relations */ + IopEnumerateDevice(IopRootDeviceNode->PhysicalDeviceObject); + #ifndef _WINKD_ /* Read KDB Data */ KdbInit();