Hack the call the MM shutdown phase 1
+ else if (Phase == 1)
+ {
+ ULONG i;
+
+ /* Loop through all the paging files */
+ for (i = 0; i < MmNumberOfPagingFiles; i++)
+ {
+ /* And dereference them */
+ ObDereferenceObject(MmPagingFile[i]->FileObject);
+ }
+ }
IoShutdownSystem(1);
CcWaitForCurrentLazyWriterActivity();
IoShutdownSystem(1);
CcWaitForCurrentLazyWriterActivity();
+ /* FIXME: Calling Mm shutdown phase 1 here to get page file dereference
+ * but it shouldn't be called here. Only phase 2 should be called.
+ */
+ MmShutdownSystem(1);
+
/* Note that here, we should broadcast the power IRP to devices */
/* In this step, the HAL disables any wake timers */
/* Note that here, we should broadcast the power IRP to devices */
/* In this step, the HAL disables any wake timers */