From ca19f82e423e6a64872d5f9938c54103f6f82bd8 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Tue, 21 Oct 2008 18:48:08 +0000 Subject: [PATCH] - If data is going to be modified, CcPinRead should be used instead of CcMapData. Fix this. svn path=/trunk/; revision=36877 --- reactos/drivers/filesystems/fastfat/dirwr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/drivers/filesystems/fastfat/dirwr.c b/reactos/drivers/filesystems/fastfat/dirwr.c index c965a5201cc..c2f3168c0f5 100644 --- a/reactos/drivers/filesystems/fastfat/dirwr.c +++ b/reactos/drivers/filesystems/fastfat/dirwr.c @@ -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);