summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/strata.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/strata.cpp')
-rw-r--r--src/devices/machine/strata.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/machine/strata.cpp b/src/devices/machine/strata.cpp
index 15841fe4597..7ed6251bba0 100644
--- a/src/devices/machine/strata.cpp
+++ b/src/devices/machine/strata.cpp
@@ -68,8 +68,8 @@ void strataflash_device::nvram_default()
bool strataflash_device::nvram_read(util::read_stream &file)
{
- size_t actual;
- if (file.read(m_flashmemory.get(), COMPLETE_SIZE, actual) || actual != COMPLETE_SIZE)
+ auto const [err, actual] = read(file, m_flashmemory.get(), COMPLETE_SIZE);
+ if (err || (COMPLETE_SIZE != actual))
return false;
// TODO
@@ -176,8 +176,8 @@ bool strataflash_device::nvram_write(util::write_stream &file)
return 0;
*/
- size_t actual;
- return !file.write(m_flashmemory.get(), COMPLETE_SIZE, actual) && actual == COMPLETE_SIZE;
+ auto const [err, actual] = write(file, m_flashmemory.get(), COMPLETE_SIZE);
+ return !err;
}
//-------------------------------------------------