Don't perform an overestimated allocation in NtfsReadFile()

Patch by Trevor Thompson

CORE-10998

svn path=/trunk/; revision=71156
This commit is contained in:
Pierre Schweitzer 2016-04-13 20:06:56 +00:00
parent 97d46bb600
commit d55cb36612

View file

@ -150,7 +150,7 @@ NtfsReadFile(PDEVICE_EXTENSION DeviceExt,
RealLength += DeviceExt->NtfsInfo.BytesPerSector;
ReadBuffer = ExAllocatePoolWithTag(NonPagedPool, RealLength + (DeviceExt->NtfsInfo.BytesPerSector * 2), TAG_NTFS);
ReadBuffer = ExAllocatePoolWithTag(NonPagedPool, RealLength, TAG_NTFS);
if (ReadBuffer == NULL)
{
DPRINT1("Not enough memory!\n");