[ros-diffs] [jmorlan] 39889: FAT(X)IsDirectoryEmpty: When done with one page, go to the next one instead of reading the same page over again. Fixes inability to remove directories that previously had many files in them.

jmorlan at svn.reactos.org jmorlan at svn.reactos.org
Fri Mar 6 18:23:30 CET 2009


Author: jmorlan
Date: Fri Mar  6 20:23:29 2009
New Revision: 39889

URL: http://svn.reactos.org/svn/reactos?rev=39889&view=rev
Log:
FAT(X)IsDirectoryEmpty: When done with one page, go to the next one instead of reading the same page over again. Fixes inability to remove directories that previously had many files in them.

Modified:
    trunk/reactos/drivers/filesystems/fastfat/direntry.c

Modified: trunk/reactos/drivers/filesystems/fastfat/direntry.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfat/direntry.c?rev=39889&r1=39888&r2=39889&view=diff
==============================================================================
--- trunk/reactos/drivers/filesystems/fastfat/direntry.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fastfat/direntry.c [iso-8859-1] Fri Mar  6 20:23:29 2009
@@ -72,6 +72,7 @@
             }
 
             FatDirEntry += Index % FAT_ENTRIES_PER_PAGE;
+            FileOffset.QuadPart += PAGE_SIZE;
         }
 
         if (FAT_ENTRY_END(FatDirEntry))
@@ -125,6 +126,7 @@
             }
 
             FatXDirEntry += Index % FATX_ENTRIES_PER_PAGE;
+            FileOffset.QuadPart += PAGE_SIZE;
         }
 
         if (FATX_ENTRY_END(FatXDirEntry))



More information about the Ros-diffs mailing list