[VFATLIB]

--MagicValues;


svn path=/trunk/; revision=62625
This commit is contained in:
Pierre Schweitzer 2014-04-05 15:39:09 +00:00
parent 05e2f0e9db
commit 9f2427ba20
3 changed files with 3 additions and 3 deletions

View file

@ -72,7 +72,7 @@ Fat12WriteBootSector(IN HANDLE FileHandle,
/* Copy FAT16 BPB to new bootsector */
memcpy(&NewBootSector->OEMName[0],
&BootSector->OEMName[0],
59); /* FAT16 BPB length (up to (not including) Res2) */
FIELD_OFFSET(FAT16_BOOT_SECTOR, Res2) - FIELD_OFFSET(FAT16_BOOT_SECTOR, OEMName)); /* FAT16 BPB length (up to (not including) Res2) */
/* Write the boot sector signature */
NewBootSector->Signature1 = 0xAA550000;

View file

@ -72,7 +72,7 @@ Fat16WriteBootSector(IN HANDLE FileHandle,
/* Copy FAT16 BPB to new bootsector */
memcpy(&NewBootSector->OEMName[0],
&BootSector->OEMName[0],
59); /* FAT16 BPB length (up to (not including) Res2) */
FIELD_OFFSET(FAT16_BOOT_SECTOR, Res2) - FIELD_OFFSET(FAT16_BOOT_SECTOR, OEMName)); /* FAT16 BPB length (up to (not including) Res2) */
/* Write the boot sector signature */
NewBootSector->Signature1 = 0xAA550000;

View file

@ -72,7 +72,7 @@ Fat32WriteBootSector(IN HANDLE FileHandle,
/* Copy FAT32 BPB to new bootsector */
memcpy(&NewBootSector->OEMName[0],
&BootSector->OEMName[0],
87); /* FAT32 BPB length (up to (not including) Res2) */
FIELD_OFFSET(FAT32_BOOT_SECTOR, Res2) - FIELD_OFFSET(FAT32_BOOT_SECTOR, OEMName)); /* FAT32 BPB length (up to (not including) Res2) */
/* Write the boot sector signature */
NewBootSector->Signature1 = 0xAA550000;