halfplement MmCanFileBeTruncated

svn path=/trunk/; revision=39289
This commit is contained in:
Christoph von Wittich 2009-02-02 17:14:24 +00:00
parent a120dfab47
commit cfad1c5307

View file

@ -4714,8 +4714,31 @@ BOOLEAN NTAPI
MmCanFileBeTruncated (IN PSECTION_OBJECT_POINTERS SectionObjectPointer,
IN PLARGE_INTEGER NewFileSize)
{
/* Check whether an ImageSectionObject exists */
if (SectionObjectPointer->ImageSectionObject != NULL)
{
return FALSE;
}
if (SectionObjectPointer->DataSectionObject != NULL)
{
PMM_SECTION_SEGMENT Segment;
Segment = (PMM_SECTION_SEGMENT)SectionObjectPointer->
DataSectionObject;
if (Segment->ReferenceCount != 0)
{
/* FIXME: check if NewFileSize <= current file size */
return FALSE;
}
}
/* FIXME: check for outstanding write probes */
UNIMPLEMENTED;
return (FALSE);
return FALSE;
}