mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 10:33:15 +00:00
[NTOS/MM] Do not error when FS returns STATUS_END_OF_FILE for paged read.
Also remove a seemingly invalid ASSERT
This commit is contained in:
parent
b46173edaf
commit
d440434a8e
1 changed files with 6 additions and 1 deletions
|
@ -1209,6 +1209,11 @@ MiReadPage(PMEMORY_AREA MemoryArea,
|
||||||
MmUnmapLockedPages (Mdl->MappedSystemVa, Mdl);
|
MmUnmapLockedPages (Mdl->MappedSystemVa, Mdl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Status == STATUS_END_OF_FILE)
|
||||||
|
{
|
||||||
|
Status = STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2211,7 +2216,7 @@ MmCreateDataFileSection(PSECTION *SectionObject,
|
||||||
if (!GotFileHandle)
|
if (!GotFileHandle)
|
||||||
{
|
{
|
||||||
ASSERT(UMaximumSize != NULL);
|
ASSERT(UMaximumSize != NULL);
|
||||||
ASSERT(UMaximumSize->QuadPart != 0);
|
// ASSERT(UMaximumSize->QuadPart != 0);
|
||||||
MaximumSize = *UMaximumSize;
|
MaximumSize = *UMaximumSize;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue