mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
dsk_dsk.cpp: Avoid to use uninitialized booleans
Fix MameTesters #07134. Thanks to Klez for testing.
This commit is contained in:
parent
02fcc308c0
commit
c42f784fe5
@ -420,10 +420,8 @@ bool dsk_format::load(io_generic *io, uint32_t form_factor, floppy_image *image)
|
||||
else
|
||||
sects[j].actual_size = 128 << tr.sector_size_code;
|
||||
|
||||
if (sector.fdc_status_reg2 & 0x40)
|
||||
sects[j].deleted = 1;
|
||||
if ((sector.fdc_status_reg1 & 0x20) || (sector.fdc_status_reg2 & 0x20))
|
||||
sects[j].bad_crc = 1;
|
||||
sects[j].deleted = (sector.fdc_status_reg2 & 0x40);
|
||||
sects[j].bad_crc = ((sector.fdc_status_reg1 & 0x20) || (sector.fdc_status_reg2 & 0x20));
|
||||
|
||||
if(!(sector.fdc_status_reg1 & 0x04)) {
|
||||
sects[j].data = sect_data + sdatapos;
|
||||
|
Loading…
Reference in New Issue
Block a user