mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
Also zero out first sector of root dir when formatting FAT12 and FAT16
volumes svn path=/trunk/; revision=8274
This commit is contained in:
parent
6bd07e5854
commit
59e447fc8f
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue