mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 19:26:42 +00:00
Fixed FAT16 bootcode install. Don't overwrite any valid BPB data.
svn path=/trunk/; revision=5722
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user