summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/softlist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/softlist.cpp')
-rw-r--r--src/emu/softlist.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/emu/softlist.cpp b/src/emu/softlist.cpp
index 4892a5ca5d8..c6bb7161be3 100644
--- a/src/emu/softlist.cpp
+++ b/src/emu/softlist.cpp
@@ -286,8 +286,7 @@ softlist_parser::softlist_parser(
char buffer[1024];
for (bool done = false; !done; )
{
- size_t length;
- file.read(buffer, sizeof(buffer), length); // TODO: better error handling
+ auto const [err, length] = read(file, buffer, sizeof(buffer)); // TODO: better error handling
if (!length)
done = true;
if (XML_Parse(m_parser, buffer, length, done) == XML_STATUS_ERROR)