Revision 69e5bc90 hw/fdc.c

b/hw/fdc.c
788 788
        }
789 789
        if (fdctrl.data_dir != FD_DIR_WRITE) {
790 790
            /* READ & SCAN commands */
791
            if (cur_drv->bs == NULL ||
792
                bdrv_read(cur_drv->bs, fd_sector(cur_drv), orig, 1) < 0) {
791
            if (cur_drv->bs == NULL) {
792
                fdctrl_stop_transfer(0x40, 0x00, 0x00);
793
                goto transfer_error;
794
            }
795
                
796
            if (bdrv_read(cur_drv->bs, fd_sector(cur_drv), orig, 1) < 0) {
793 797
                FLOPPY_DPRINTF("Floppy: error getting sector %d\n",
794 798
                               fd_sector(cur_drv));
795 799
                /* Sure, image size is too small... */

Also available in: Unified diff