Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 188148 | Differences between
and this patch

Collapse All | Expand All

(-)iodev/floppy.cc (-3 / +3 lines)
Lines 1785-1791 bx_bool bx_floppy_ctrl_c::evaluate_media Link Here
1785
        }
1785
        }
1786
        media->sectors = media->heads * media->tracks * media->sectors_per_track;
1786
        media->sectors = media->heads * media->tracks * media->sectors_per_track;
1787
    }
1787
    }
1788
    return(1); // success
1788
    return (media->sectors > 0); // success
1789
  }
1789
  }
1790
1790
1791
  else if ( S_ISCHR(stat_buf.st_mode)
1791
  else if ( S_ISCHR(stat_buf.st_mode)
Lines 1805-1811 bx_bool bx_floppy_ctrl_c::evaluate_media Link Here
1805
      media->heads             = floppy_type[type_idx].hd;
1805
      media->heads             = floppy_type[type_idx].hd;
1806
      media->sectors_per_track = floppy_type[type_idx].spt;
1806
      media->sectors_per_track = floppy_type[type_idx].spt;
1807
      media->sectors           = floppy_type[type_idx].sectors;
1807
      media->sectors           = floppy_type[type_idx].sectors;
1808
      return 1;
1808
      return (media->sectors > 0);
1809
    }
1809
    }
1810
    media->tracks            = floppy_geom.track;
1810
    media->tracks            = floppy_geom.track;
1811
    media->heads             = floppy_geom.head;
1811
    media->heads             = floppy_geom.head;
Lines 1822-1828 bx_bool bx_floppy_ctrl_c::evaluate_media Link Here
1822
    media->sectors_per_track = floppy_type[type_idx].spt;
1822
    media->sectors_per_track = floppy_type[type_idx].spt;
1823
    media->sectors           = floppy_type[type_idx].sectors;
1823
    media->sectors           = floppy_type[type_idx].sectors;
1824
#endif
1824
#endif
1825
    return 1; // success
1825
    return (media->sectors > 0); // success
1826
  } else {
1826
  } else {
1827
    // unknown file type
1827
    // unknown file type
1828
    BX_ERROR(("unknown mode type"));
1828
    BX_ERROR(("unknown mode type"));

Return to bug 188148