summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/fileio.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2016-03-15 11:10:59 +1100
committer Vas Crabb <vas@vastheman.com>2016-03-15 11:10:59 +1100
commite9c1a1e474420b4021265e001eda50e1f8201133 (patch)
treea4e5312d45a08f8376c1638b322eb0370702d4ff /src/emu/fileio.cpp
parenteb3459137c2688d7760fd9df4f2abee1c1554823 (diff)
Fix use-after-move
Diffstat (limited to 'src/emu/fileio.cpp')
-rw-r--r--src/emu/fileio.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/fileio.cpp b/src/emu/fileio.cpp
index b8e0c433575..e0d7cdd7772 100644
--- a/src/emu/fileio.cpp
+++ b/src/emu/fileio.cpp
@@ -835,11 +835,11 @@ osd_file::error emu_file::attempt__7zped()
if (fileno != -1)
{
m__7zfile = std::move(_7z);
- m__7zlength = _7z->current_uncompressed_length();
+ m__7zlength = m__7zfile->current_uncompressed_length();
// build a hash with just the CRC
m_hashes.reset();
- m_hashes.add_crc(_7z->current_crc());
+ m_hashes.add_crc(m__7zfile->current_crc());
return (m_openflags & OPEN_FLAG_NO_PRELOAD) ? osd_file::error::NONE : load__7zped_file();
}