- If data is going to be modified, CcPinRead should be used instead of CcMapData...
authorAleksey Bragin <aleksey@reactos.org>
Tue, 21 Oct 2008 18:48:08 +0000 (18:48 +0000)
committerAleksey Bragin <aleksey@reactos.org>
Tue, 21 Oct 2008 18:48:08 +0000 (18:48 +0000)
svn path=/trunk/; revision=36877

reactos/drivers/filesystems/fastfat/dirwr.c

index c965a52..c2f3168 100644 (file)
@@ -478,7 +478,7 @@ FATAddEntry(
     if (RequestedOptions & FILE_DIRECTORY_FILE)
     {
         FileOffset.QuadPart = 0;
-        CcMapData((*Fcb)->FileObject, &FileOffset, DeviceExt->FatInfo.BytesPerCluster, TRUE,
+        CcPinRead((*Fcb)->FileObject, &FileOffset, DeviceExt->FatInfo.BytesPerCluster, TRUE,
                   &Context, (PVOID*)&pFatEntry);
         /* clear the new directory cluster */
         RtlZeroMemory(pFatEntry, DeviceExt->FatInfo.BytesPerCluster);