- If data is going to be modified, CcPinRead should be used instead of CcMapData. Fix this.

svn path=/trunk/; revision=36877
This commit is contained in:
Aleksey Bragin 2008-10-21 18:48:08 +00:00
parent 42d35acde0
commit ca19f82e42

View 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);