Author: cgutman
Date: Wed Jul 20 19:56:58 2011
New Revision: 52748

URL: http://svn.reactos.org/svn/reactos?rev=52748&view=rev
Log:
[USETUP]
- Fix length calculation for FAT16 volumes

Modified:
    trunk/reactos/base/setup/usetup/bootsup.c

Modified: trunk/reactos/base/setup/usetup/bootsup.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/bootsup.c?rev=52748&r1=52747&r2=52748&view=diff
==============================================================================
--- trunk/reactos/base/setup/usetup/bootsup.c [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/bootsup.c [iso-8859-1] Wed Jul 20 19:56:58 
2011
@@ -850,8 +850,8 @@
     /* 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 @@
     /* 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;


Reply via email to