mirror of
https://github.com/reactos/reactos.git
synced 2024-07-12 15:45:20 +00:00
Fixed FAT16 bootcode install. Don't overwrite any valid BPB data.
svn path=/trunk/; revision=5722
This commit is contained in:
parent
5f04c08330
commit
f7b82c11f2
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue