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