diff --git a/reactos/lib/fslib/vfatlib/fat12.c b/reactos/lib/fslib/vfatlib/fat12.c index f22cb01683d..16dca94701b 100644 --- a/reactos/lib/fslib/vfatlib/fat12.c +++ b/reactos/lib/fslib/vfatlib/fat12.c @@ -223,7 +223,7 @@ Fat12WriteRootDirectory(IN HANDLE FileHandle, memset(Buffer, 0, 32 * 1024); Sectors = 32 * 1024 / BootSector->BytesPerSector; - for (i = 1; i < RootDirSectors; i += Sectors) + for (i = 0; i < RootDirSectors; i += Sectors) { /* Zero some sectors of the root directory */ FileOffset.QuadPart = (FirstRootDirSector + i) * BootSector->BytesPerSector; diff --git a/reactos/lib/fslib/vfatlib/fat16.c b/reactos/lib/fslib/vfatlib/fat16.c index d7a2877a579..0867d8a08ce 100644 --- a/reactos/lib/fslib/vfatlib/fat16.c +++ b/reactos/lib/fslib/vfatlib/fat16.c @@ -226,7 +226,7 @@ Fat16WriteRootDirectory(IN HANDLE FileHandle, memset(Buffer, 0, 32 * 1024); Sectors = 32 * 1024 / BootSector->BytesPerSector; - for (i = 1; i < RootDirSectors; i += Sectors) + for (i = 0; i < RootDirSectors; i += Sectors) { /* Zero some sectors of the root directory */ FileOffset.QuadPart = (FirstRootDirSector + i) * BootSector->BytesPerSector;