diff options
Diffstat (limited to 'src/devices/machine/ch376.cpp')
-rw-r--r-- | src/devices/machine/ch376.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/machine/ch376.cpp b/src/devices/machine/ch376.cpp index 8c13833292e..eeca140ec0a 100644 --- a/src/devices/machine/ch376.cpp +++ b/src/devices/machine/ch376.cpp @@ -255,7 +255,7 @@ void ch376_device::write(offs_t offset, u8 data) tmpPath.append(m_file_name); } - if (osd_file::open(tmpPath, OPEN_FLAG_READ|OPEN_FLAG_WRITE, m_file, size) == osd_file::error::NONE) + if (!osd_file::open(tmpPath, OPEN_FLAG_READ|OPEN_FLAG_WRITE, m_file, size)) { m_int_status = STATUS_USB_INT_SUCCESS; m_cur_file_size = size & 0xffffffff; |