diff options
Diffstat (limited to 'src/cdrom.c')
-rw-r--r-- | src/cdrom.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cdrom.c b/src/cdrom.c index 8f9e7d0a..8ccbeeab 100644 --- a/src/cdrom.c +++ b/src/cdrom.c @@ -463,10 +463,10 @@ cdrom_boot(int cdid) SET_EBDA2(ebda_seg, cdemu.ilba, lba); // And we read the image in memory - dop.lba = lba * 4; - dop.count = nbsectors; + dop.lba = lba; + dop.count = DIV_ROUND_UP(nbsectors, 4); dop.buf_fl = MAKE_FLATPTR(boot_segment, 0); - ret = cdrom_read_512(&dop); + ret = cdrom_read(&dop); if (ret) return 12; |