- 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:
Hartmut Birr 2005-01-25 21:08:54 +00:00
parent 4211cf6398
commit c25206e880

View file

@ -40,6 +40,13 @@ VfatUpdateEntry (PVFATFCB pFcb)
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.LowPart = dirIndex * SizeDirEntry;
if (CcPinRead (pFcb->parentFcb->FileObject, &Offset, SizeDirEntry,
@ -544,6 +551,7 @@ FATXAddEntry (PDEVICE_EXTENSION DeviceExt,
if (!vfatFCBIsRoot(ParentFcb))
{
DirContext.DirIndex += 2;
DirContext.StartIndex += 2;
}
DirContext.ShortNameU.Buffer = 0;