summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/ch376.cpp
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2021-09-10 09:39:10 -0700
committer Aaron Giles <aaron@aarongiles.com>2021-09-10 09:39:10 -0700
commitfedb40f712d34bb2b6904487ce88dd124e26c7f5 (patch)
tree3a539aa7f386b3c11ec76bdb266ca03a08039cfe /src/devices/machine/ch376.cpp
parente505ac97bd2de9100d02d37fc0270504bf60b531 (diff)
parenta99d2f3295c21e6ae97cbffce8cf025860bfa4d6 (diff)
Merge branch 'master' into time-experiments2
Diffstat (limited to 'src/devices/machine/ch376.cpp')
-rw-r--r--src/devices/machine/ch376.cpp2
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;