aboutsummaryrefslogtreecommitdiffstats
path: root/memdisk
diff options
context:
space:
mode:
authorGene Cumm <gene.cumm@gmail.com>2011-01-26 21:10:19 -0500
committerGene Cumm <gene.cumm@gmail.com>2011-01-26 21:10:19 -0500
commit059cf1611b04bd99a033e008493c55284a9060a3 (patch)
tree64f3f9440eb577f74a8434ee3c16a0d7262e9bc6 /memdisk
parenta557d22c12b6e1353f97d5aacc50d511b6843ce4 (diff)
downloadsyslinux-059cf1611b04bd99a033e008493c55284a9060a3.tar.gz
syslinux-059cf1611b04bd99a033e008493c55284a9060a3.tar.xz
syslinux-059cf1611b04bd99a033e008493c55284a9060a3.zip
memdisk/dskprobe: Use status of last command to affect present
Diffstat (limited to 'memdisk')
-rw-r--r--memdisk/dskprobe.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/memdisk/dskprobe.c b/memdisk/dskprobe.c
index e554f57f..dd6de4ca 100644
--- a/memdisk/dskprobe.c
+++ b/memdisk/dskprobe.c
@@ -106,9 +106,8 @@ static int probe_int13h_15h(uint8_t drive, com32sys_t * regs)
memset(regs, 0, sizeof *regs);
probe_any(0x15, drive, regs);
- present = !(regs->eflags.l & 1) && regs->eax.b[1];
- status = probe_int13h_01h(drive);
- probe_int13h_01h_fail(status);
+ present = !(regs->eflags.l & 1) && regs->eax.b[1]
+ && !(probe_int13h_01h_fail(probe_int13h_01h(drive)));
dskprobe_printf(" AH15: P%d CF%d AH%02x AL%02x CX%04x DX%04x\n", present,
regs->eflags.l & 1, regs->eax.b[1], regs->eax.b[0],
regs->ecx.w[0], regs->edx.w[0]);