[ros-diffs] [hbirr] 13278: - Check for some special file streams in VfatUpdateEntry.

hbirr at svn.reactos.com hbirr at svn.reactos.com
Tue Jan 25 22:08:56 CET 2005


- 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.
Modified: trunk/reactos/drivers/fs/vfat/dirwr.c
  _____  

Modified: trunk/reactos/drivers/fs/vfat/dirwr.c
--- trunk/reactos/drivers/fs/vfat/dirwr.c	2005-01-25 21:07:32 UTC
(rev 13277)
+++ trunk/reactos/drivers/fs/vfat/dirwr.c	2005-01-25 21:08:54 UTC
(rev 13278)
@@ -40,6 +40,13 @@

 
   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 @@
    if (!vfatFCBIsRoot(ParentFcb))
    {
       DirContext.DirIndex += 2;
+      DirContext.StartIndex += 2;
    }
   
    DirContext.ShortNameU.Buffer = 0;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050125/f0f83d77/attachment.html


More information about the Ros-diffs mailing list