mirror of
https://github.com/reactos/reactos.git
synced 2024-06-30 18:01:07 +00:00
[USETUP]
- Fix length calculation for FAT16 volumes svn path=/trunk/; revision=52748
This commit is contained in:
parent
94cd89e643
commit
1e3d0d1bb6
|
@ -850,8 +850,8 @@ InstallFat16BootCodeToFile(
|
|||
/* Adjust bootsector (copy a part of the FAT BPB) */
|
||||
memcpy(&NewBootSector->OemName,
|
||||
&OrigBootSector->OemName,
|
||||
FIELD_OFFSET(FAT32_BOOTSECTOR, BootCodeAndData) -
|
||||
FIELD_OFFSET(FAT32_BOOTSECTOR, OemName));
|
||||
FIELD_OFFSET(FAT_BOOTSECTOR, BootCodeAndData) -
|
||||
FIELD_OFFSET(FAT_BOOTSECTOR, OemName));
|
||||
|
||||
/* Free the original boot sector */
|
||||
RtlFreeHeap(ProcessHeap, 0, OrigBootSector);
|
||||
|
@ -1369,8 +1369,8 @@ InstallFat16BootCodeToDisk(
|
|||
/* Adjust bootsector (copy a part of the FAT16 BPB) */
|
||||
memcpy(&NewBootSector->OemName,
|
||||
&OrigBootSector->OemName,
|
||||
FIELD_OFFSET(FAT32_BOOTSECTOR, BootCodeAndData) -
|
||||
FIELD_OFFSET(FAT32_BOOTSECTOR, OemName));
|
||||
FIELD_OFFSET(FAT_BOOTSECTOR, BootCodeAndData) -
|
||||
FIELD_OFFSET(FAT_BOOTSECTOR, OemName));
|
||||
|
||||
PartInfo = &PartitionList->CurrentPartition->PartInfo[PartitionList->CurrentPartitionNumber];
|
||||
NewBootSector->HiddenSectors = PartInfo->HiddenSectors;
|
||||
|
|
Loading…
Reference in a new issue