[VFATLIB] Simplify in-memory boot sector copy.
[reactos.git] / sdk / lib / fslib / vfatlib / fat32.c
index 1987af4..4e78937 100644 (file)
@@ -38,8 +38,7 @@ Fat32WriteBootSector(IN HANDLE FileHandle,
     RtlZeroMemory(NewBootSector, BootSector->BytesPerSector);
 
     /* Copy FAT32 BPB to new bootsector */
-    memcpy(&NewBootSector->Jump[0],
-           &BootSector->Jump[0],
+    memcpy(NewBootSector, BootSector,
            FIELD_OFFSET(FAT32_BOOT_SECTOR, Res2) - FIELD_OFFSET(FAT32_BOOT_SECTOR, Jump));
            /* FAT32 BPB length (up to (not including) Res2) */