mirror of
https://github.com/reactos/reactos.git
synced 2024-08-04 18:40:59 +00:00
[VFATLIB]
--MagicValues; svn path=/trunk/; revision=62625
This commit is contained in:
parent
05e2f0e9db
commit
9f2427ba20
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue