Don't shutdown devices before flushing registry and shutting down filesystems.
Modified: trunk/reactos/ntoskrnl/ex/power.c

Modified: trunk/reactos/ntoskrnl/ex/power.c
--- trunk/reactos/ntoskrnl/ex/power.c	2005-01-29 22:36:52 UTC (rev 13364)
+++ trunk/reactos/ntoskrnl/ex/power.c	2005-01-30 09:46:15 UTC (rev 13365)
@@ -1,4 +1,4 @@
-/* $Id:$
+/* $Id$
  * 
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS kernel
@@ -45,9 +45,9 @@
    /* Run the thread on the boot processor */
    KeSetSystemAffinityThread(1);
 
-   IoShutdownRegisteredDevices();
    CmShutdownRegistry();
    IoShutdownRegisteredFileSystems();
+   IoShutdownRegisteredDevices();
 
    PiShutdownProcessManager();
    MiShutdownMemoryManager();