mirror of
https://github.com/reactos/reactos.git
synced 2024-07-01 02:10:07 +00:00
[NTOSKRNL] Stub IoInitializeCrashDump()
Also call it from NtCreatePagingFile() when we have successfully created a paging file on the system boot partition.
This commit is contained in:
parent
e5fcda922b
commit
108991a6fb
|
@ -797,6 +797,12 @@ IopVerifyDiskSignature(
|
||||||
OUT PULONG Signature
|
OUT PULONG Signature
|
||||||
);
|
);
|
||||||
|
|
||||||
|
BOOLEAN
|
||||||
|
NTAPI
|
||||||
|
IoInitializeCrashDump(
|
||||||
|
IN HANDLE PageFileHandle
|
||||||
|
);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Device/Volume Routines
|
// Device/Volume Routines
|
||||||
//
|
//
|
||||||
|
|
|
@ -651,4 +651,12 @@ IoInitSystem(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BOOLEAN
|
||||||
|
NTAPI
|
||||||
|
IoInitializeCrashDump(IN HANDLE PageFileHandle)
|
||||||
|
{
|
||||||
|
UNIMPLEMENTED;
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
/* EOF */
|
/* EOF */
|
||||||
|
|
|
@ -89,6 +89,8 @@ C_ASSERT(FILE_FROM_ENTRY(0xffffffff) < MAX_PAGING_FILES);
|
||||||
|
|
||||||
static BOOLEAN MmSwapSpaceMessage = FALSE;
|
static BOOLEAN MmSwapSpaceMessage = FALSE;
|
||||||
|
|
||||||
|
static BOOLEAN MmSystemPageFileLocated = FALSE;
|
||||||
|
|
||||||
/* FUNCTIONS *****************************************************************/
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
|
@ -804,6 +806,11 @@ NtCreatePagingFile(IN PUNICODE_STRING FileName,
|
||||||
|
|
||||||
MmSwapSpaceMessage = FALSE;
|
MmSwapSpaceMessage = FALSE;
|
||||||
|
|
||||||
|
if (!MmSystemPageFileLocated && BooleanFlagOn(FileObject->DeviceObject->Flags, DO_SYSTEM_BOOT_PARTITION))
|
||||||
|
{
|
||||||
|
MmSystemPageFileLocated = IoInitializeCrashDump(FileHandle);
|
||||||
|
}
|
||||||
|
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue