diff options
Diffstat (limited to 'src/emu/diimage.c')
-rw-r--r-- | src/emu/diimage.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/emu/diimage.c b/src/emu/diimage.c index 8f4f949a7f1..bf5f4a3cb5a 100644 --- a/src/emu/diimage.c +++ b/src/emu/diimage.c @@ -497,7 +497,8 @@ void device_image_interface::image_checkhash() device_image_partialhash_func partialhash; /* only calculate CRC if it hasn't been calculated, and the open_mode is read only */ - if (m_hash.first() == NULL && m_readonly && !m_created) + UINT32 crcval; + if (!m_hash.crc(crcval) && m_readonly && !m_created) { /* do not cause a linear read of 600 megs please */ /* TODO: use SHA1 in the CHD header as the hash */ |