[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:
Pierre Schweitzer 2018-09-18 21:42:01 +02:00
parent e5fcda922b
commit 108991a6fb
No known key found for this signature in database
GPG Key ID: 7545556C3D585B0B
3 changed files with 21 additions and 0 deletions

View File

@ -797,6 +797,12 @@ IopVerifyDiskSignature(
OUT PULONG Signature
);
BOOLEAN
NTAPI
IoInitializeCrashDump(
IN HANDLE PageFileHandle
);
//
// Device/Volume Routines
//

View File

@ -651,4 +651,12 @@ IoInitSystem(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
return TRUE;
}
BOOLEAN
NTAPI
IoInitializeCrashDump(IN HANDLE PageFileHandle)
{
UNIMPLEMENTED;
return FALSE;
}
/* EOF */

View File

@ -89,6 +89,8 @@ C_ASSERT(FILE_FROM_ENTRY(0xffffffff) < MAX_PAGING_FILES);
static BOOLEAN MmSwapSpaceMessage = FALSE;
static BOOLEAN MmSystemPageFileLocated = FALSE;
/* FUNCTIONS *****************************************************************/
VOID
@ -804,6 +806,11 @@ NtCreatePagingFile(IN PUNICODE_STRING FileName,
MmSwapSpaceMessage = FALSE;
if (!MmSystemPageFileLocated && BooleanFlagOn(FileObject->DeviceObject->Flags, DO_SYSTEM_BOOT_PARTITION))
{
MmSystemPageFileLocated = IoInitializeCrashDump(FileHandle);
}
return STATUS_SUCCESS;
}