Don't call ReadCacheSegmentChain() twice (thanks Maarten).
authorAleksey Bragin <aleksey@reactos.org>
Fri, 5 Jan 2007 19:41:19 +0000 (19:41 +0000)
committerAleksey Bragin <aleksey@reactos.org>
Fri, 5 Jan 2007 19:41:19 +0000 (19:41 +0000)
svn path=/trunk/; revision=25313

reactos/ntoskrnl/cc/copy.c

index 5d73d7d..1faec95 100644 (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))
         {