Don't call ReadCacheSegmentChain() twice (thanks Maarten).

svn path=/trunk/; revision=25313
This commit is contained in:
Aleksey Bragin 2007-01-05 19:41:19 +00:00
parent 09ce11f2a5
commit a8637ee73e

View file

@ -381,7 +381,6 @@ CcCopyRead (IN PFILE_OBJECT FileObject,
while (Length > 0)
{
TempLength = min(max(Bcb->CacheSegmentSize, MAX_RW_LENGTH), Length);
ReadCacheSegmentChain(Bcb, ReadOffset, TempLength, Buffer);
Status = ReadCacheSegmentChain(Bcb, ReadOffset, TempLength, Buffer);
if (!NT_SUCCESS(Status))
{