projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[FREELDR]
[reactos.git]
/
reactos
/
boot
/
freeldr
/
freeldr
/
arch
/
i386
/
hardware.c
diff --git
a/reactos/boot/freeldr/freeldr/arch/i386/hardware.c
b/reactos/boot/freeldr/freeldr/arch/i386/hardware.c
index
f99e267
..
641bd8d
100644
(file)
--- a/
reactos/boot/freeldr/freeldr/arch/i386/hardware.c
+++ b/
reactos/boot/freeldr/freeldr/arch/i386/hardware.c
@@
-1004,6
+1004,7
@@
DetectBiosDisks(PCONFIGURATION_COMPONENT_DATA BusKey)
/* Calculate the MBR checksum */
for (i = 0; i < 2048 / sizeof(ULONG); i++) Checksum += Buffer[i];
+ Checksum = ~Checksum + 1;
DPRINTM(DPRINT_HWDETECT, "Checksum: %x\n", Checksum);
/* Fill out the ARC disk block */