mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
[NTFS]
Don't perform an overestimated allocation in NtfsReadFile() Patch by Trevor Thompson CORE-10998 svn path=/trunk/; revision=71156
This commit is contained in:
parent
97d46bb600
commit
d55cb36612
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue