aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhpa <hpa>2005-08-25 00:03:35 +0000
committerhpa <hpa>2005-08-25 00:03:35 +0000
commit4a119c539f0a38675d98f9d75b1f441e1128eea7 (patch)
treea59aa52324f8d4eb13665191918bb8357e4aeb48
parentfcf1adbd25f4faff8e745c8644e29b96ef08718f (diff)
downloadsyslinux-4a119c539f0a38675d98f9d75b1f441e1128eea7.tar.gz
syslinux-4a119c539f0a38675d98f9d75b1f441e1128eea7.tar.xz
syslinux-4a119c539f0a38675d98f9d75b1f441e1128eea7.zip
Fix bug w.r.t. floppy count.
-rw-r--r--memdisk/setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/memdisk/setup.c b/memdisk/setup.c
index 187cbf95..1f8aa5d3 100644
--- a/memdisk/setup.c
+++ b/memdisk/setup.c
@@ -730,7 +730,7 @@ uint32_t setup(syscall_t cs_syscall, void *cs_bounce)
} else {
/* Update BIOS floppy disk count */
uint8_t equip = rdz_8(BIOS_EQUIP);
- int nflop = (equip & 1) ? (equip >> 6) : 0;
+ int nflop = (equip & 1) ? (equip >> 6)+1 : 0;
nflop++;
if ( nflop <= geometry->driveno )