mirror of
https://github.com/reactos/reactos.git
synced 2025-06-12 11:58:32 +00:00
- 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:
parent
42d35acde0
commit
ca19f82e42
1 changed files with 1 additions and 1 deletions
|
@ -478,7 +478,7 @@ FATAddEntry(
|
||||||
if (RequestedOptions & FILE_DIRECTORY_FILE)
|
if (RequestedOptions & FILE_DIRECTORY_FILE)
|
||||||
{
|
{
|
||||||
FileOffset.QuadPart = 0;
|
FileOffset.QuadPart = 0;
|
||||||
CcMapData((*Fcb)->FileObject, &FileOffset, DeviceExt->FatInfo.BytesPerCluster, TRUE,
|
CcPinRead((*Fcb)->FileObject, &FileOffset, DeviceExt->FatInfo.BytesPerCluster, TRUE,
|
||||||
&Context, (PVOID*)&pFatEntry);
|
&Context, (PVOID*)&pFatEntry);
|
||||||
/* clear the new directory cluster */
|
/* clear the new directory cluster */
|
||||||
RtlZeroMemory(pFatEntry, DeviceExt->FatInfo.BytesPerCluster);
|
RtlZeroMemory(pFatEntry, DeviceExt->FatInfo.BytesPerCluster);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue