From: Sergey Vlasov Date: Thu, 24 Apr 2008 19:33:54 +0000 (+0400) Subject: chain.c32: fix booting from logical partitions X-Git-Tag: syslinux-3.64-pre1~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e31a673cc14223db120f363dcd6ecc491125f622;p=profile%2Fivi%2Fsyslinux.git 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 --- diff --git a/com32/modules/chain.c b/com32/modules/chain.c index b790bd0..ec92cd0 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