From f7b82c11f2bd7bc060cda2ecba88992b8ce32188 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Thu, 21 Aug 2003 15:35:32 +0000 Subject: [PATCH] Fixed FAT16 bootcode install. Don't overwrite any valid BPB data. svn path=/trunk/; revision=5722 --- reactos/subsys/system/usetup/bootsup.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/reactos/subsys/system/usetup/bootsup.c b/reactos/subsys/system/usetup/bootsup.c index 473041aba9b..a792f3b7b9d 100644 --- a/reactos/subsys/system/usetup/bootsup.c +++ b/reactos/subsys/system/usetup/bootsup.c @@ -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);