projects
/
grub.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
chainloader: Fix wrong break condition (must be AND not, OR)
[grub.git]
/
grub-core
/
loader
/
i386
/
pc
/
chainloader.c
diff --git
a/grub-core/loader/i386/pc/chainloader.c
b/grub-core/loader/i386/pc/chainloader.c
index
c79c4fe
..
18220b7
100644
(file)
--- a/
grub-core/loader/i386/pc/chainloader.c
+++ b/
grub-core/loader/i386/pc/chainloader.c
@@
-117,7
+117,7
@@
grub_chainloader_patch_bpb (void *bs, grub_device_t dev, grub_uint8_t dl)
if (bpb->num_reserved_sectors == 0)
break;
- if (bpb->num_total_sectors_16 == 0
||
bpb->num_total_sectors_32 == 0)
+ if (bpb->num_total_sectors_16 == 0
&&
bpb->num_total_sectors_32 == 0)
break;
if (bpb->num_fats == 0)