Fixed FAT16 bootcode install. Don't overwrite any valid BPB data.

svn path=/trunk/; revision=5722
This commit is contained in:
Eric Kohl 2003-08-21 15:35:32 +00:00
parent 5f04c08330
commit f7b82c11f2

View file

@ -1190,8 +1190,10 @@ InstallFat16BootCodeToDisk(PWSTR SrcPath,
return(Status);
}
/* Adjust bootsector (copy a part of the FAT BPB) */
memcpy((NewBootSector + 11), (OrigBootSector + 11), 51 /*fat BPB length*/);
/* Adjust bootsector (copy a part of the FAT16 BPB) */
memcpy((NewBootSector + 3),
(OrigBootSector + 3),
59); /* FAT16 BPB length*/
/* Free the original boot sector */
RtlFreeHeap(ProcessHeap, 0, OrigBootSector);