diskstart: if no partition info is available, use bsHidden syslinux-4.00-pre63
authorH. Peter Anvin <hpa@zytor.com>
Sun, 27 Jun 2010 04:31:08 +0000 (21:31 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Sun, 27 Jun 2010 04:31:08 +0000 (21:31 -0700)
commitadd6ad3cd1f14b71b908059f0c767d51bdd5b207
tree10d2d40c991885f320d9511fb97767d996fca16c
parente8f2cf44b1ee708093880cf4071a0ee6d72a044a
diskstart: if no partition info is available, use bsHidden

If we have no partition information available, use the bsHidden field
(which is set by the extlinux installer in the case of non-FAT).  This
gives at least a hope of working correctly (for < 2 TiB disks, at
least) with the stock Vista/Win7 MBR.

Also, add a check for partition type != 0.  This helps catch the case
when DS:SI points into all-zero memory.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
core/diskstart.inc