summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Vlasov <vsu@altlinux.ru>2008-04-24 23:33:54 +0400
committerH. Peter Anvin <hpa@zytor.com>2008-04-24 14:14:22 -0700
commite31a673cc14223db120f363dcd6ecc491125f622 (patch)
tree94a42819580ab8f600f73f9a4cb917a54e2d1865
parente3d33598815f6aa43b7f2b3aecf6bc2d6b4f408e (diff)
downloadsyslinux-e31a673cc14223db120f363dcd6ecc491125f622.tar.gz
chain.c32: fix booting from logical partitions
Booting from a logical partition failed with the "Requested logical partition not found" error due to a wrong test for partition signature in find_logical_partition(). Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
-rw-r--r--com32/modules/chain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/modules/chain.c b/com32/modules/chain.c
index b790bd0b..ec92cd0c 100644
--- a/com32/modules/chain.c
+++ b/com32/modules/chain.c
@@ -228,7 +228,7 @@ find_logical_partition(int whichpart, char *table, struct part_entry *self,
struct part_entry *found;
int i;
- if ( *(uint16_t *)(ptab + 0x1fe) != 0xaa55 )
+ if ( *(uint16_t *)(table + 0x1fe) != 0xaa55 )
return NULL; /* Signature missing */
/* We are assumed to already having enumerated all the data partitions