mirror of
https://github.com/reactos/reactos.git
synced 2024-08-04 18:40:59 +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);
|
return(Status);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Adjust bootsector (copy a part of the FAT BPB) */
|
/* Adjust bootsector (copy a part of the FAT16 BPB) */
|
||||||
memcpy((NewBootSector + 11), (OrigBootSector + 11), 51 /*fat BPB length*/);
|
memcpy((NewBootSector + 3),
|
||||||
|
(OrigBootSector + 3),
|
||||||
|
59); /* FAT16 BPB length*/
|
||||||
|
|
||||||
/* Free the original boot sector */
|
/* Free the original boot sector */
|
||||||
RtlFreeHeap(ProcessHeap, 0, OrigBootSector);
|
RtlFreeHeap(ProcessHeap, 0, OrigBootSector);
|
||||||
|
|
Loading…
Reference in a new issue