mirror of
https://github.com/reactos/reactos.git
synced 2025-06-10 12:24:48 +00:00
- Check for some special file streams in VfatUpdateEntry.
W2K does open the volume for changing the date and time, but the volume hasn't a parent fcb. - Fixed the directory index of a file for FATX. svn path=/trunk/; revision=13278
This commit is contained in:
parent
4211cf6398
commit
c25206e880
1 changed files with 8 additions and 0 deletions
|
@ -40,6 +40,13 @@ VfatUpdateEntry (PVFATFCB pFcb)
|
||||||
|
|
||||||
DPRINT ("updEntry dirIndex %d, PathName \'%wZ\'\n", dirIndex, &pFcb->PathNameU);
|
DPRINT ("updEntry dirIndex %d, PathName \'%wZ\'\n", dirIndex, &pFcb->PathNameU);
|
||||||
|
|
||||||
|
if (vfatFCBIsRoot(pFcb) || (pFcb->Flags & (FCB_IS_FAT|FCB_IS_VOLUME)))
|
||||||
|
{
|
||||||
|
return STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
ASSERT (pFcb->parrentFcb);
|
||||||
|
|
||||||
Offset.u.HighPart = 0;
|
Offset.u.HighPart = 0;
|
||||||
Offset.u.LowPart = dirIndex * SizeDirEntry;
|
Offset.u.LowPart = dirIndex * SizeDirEntry;
|
||||||
if (CcPinRead (pFcb->parentFcb->FileObject, &Offset, SizeDirEntry,
|
if (CcPinRead (pFcb->parentFcb->FileObject, &Offset, SizeDirEntry,
|
||||||
|
@ -544,6 +551,7 @@ FATXAddEntry (PDEVICE_EXTENSION DeviceExt,
|
||||||
if (!vfatFCBIsRoot(ParentFcb))
|
if (!vfatFCBIsRoot(ParentFcb))
|
||||||
{
|
{
|
||||||
DirContext.DirIndex += 2;
|
DirContext.DirIndex += 2;
|
||||||
|
DirContext.StartIndex += 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
DirContext.ShortNameU.Buffer = 0;
|
DirContext.ShortNameU.Buffer = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue