From 58e2d39f210c93a726f08ea937da814490d5362e Mon Sep 17 00:00:00 2001 From: Jeffrey Morlan Date: Fri, 6 Mar 2009 17:23:29 +0000 Subject: [PATCH] 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. svn path=/trunk/; revision=39889 --- reactos/drivers/filesystems/fastfat/direntry.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reactos/drivers/filesystems/fastfat/direntry.c b/reactos/drivers/filesystems/fastfat/direntry.c index 3aa2a60986e..1a1577c452d 100644 --- a/reactos/drivers/filesystems/fastfat/direntry.c +++ b/reactos/drivers/filesystems/fastfat/direntry.c @@ -72,6 +72,7 @@ FATIsDirectoryEmpty(PVFATFCB Fcb) } FatDirEntry += Index % FAT_ENTRIES_PER_PAGE; + FileOffset.QuadPart += PAGE_SIZE; } if (FAT_ENTRY_END(FatDirEntry)) @@ -125,6 +126,7 @@ FATXIsDirectoryEmpty(PVFATFCB Fcb) } FatXDirEntry += Index % FATX_ENTRIES_PER_PAGE; + FileOffset.QuadPart += PAGE_SIZE; } if (FATX_ENTRY_END(FatXDirEntry))