diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-06-30 11:15:17 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-06-30 11:15:17 -0400 |
commit | 30358c4848a494b6ebc1b85d67818cc701804125 (patch) | |
tree | 5a38cb8257d73edd35c3ad722b5e4beaa8df6954 | |
parent | 9c2812a80a8b54ba1e68f0e0cbafa69a1b2481f3 (diff) | |
download | syslinux-30358c4848a494b6ebc1b85d67818cc701804125.tar.gz |
Forgot to add our own drive to the drive count!syslinux-3.52-pre3
-rw-r--r-- | memdisk/setup.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/memdisk/setup.c b/memdisk/setup.c index bad056cf..553c4467 100644 --- a/memdisk/setup.c +++ b/memdisk/setup.c @@ -766,6 +766,9 @@ void setup(syscall_t cs_syscall, void *cs_bounce) pptr->drivecnt = bios_drives; } + /* Add ourselves to the drive count */ + pptr->drivecnt++; + /* Discontiguous drive space. There is no really good solution for this. */ if ( pptr->drivecnt <= (geometry->driveno & 0x7f) ) pptr->drivecnt = (geometry->driveno & 0x7f) + 1; |