summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/ata/idehd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/ata/idehd.cpp')
-rw-r--r--src/devices/bus/ata/idehd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/bus/ata/idehd.cpp b/src/devices/bus/ata/idehd.cpp
index 15a079963de..dd1a8f932ec 100644
--- a/src/devices/bus/ata/idehd.cpp
+++ b/src/devices/bus/ata/idehd.cpp
@@ -838,7 +838,7 @@ void ide_hdd_device::device_reset()
// build the features page
uint32_t metalength;
- if (m_handle && m_handle->read_metadata (HARD_DISK_IDENT_METADATA_TAG, 0, &m_buffer[0], 512, metalength) == CHDERR_NONE)
+ if (m_handle && !m_handle->read_metadata(HARD_DISK_IDENT_METADATA_TAG, 0, &m_buffer[0], 512, metalength))
{
for( int w = 0; w < 256; w++ )
{