From 73b44c94291c4d086477167a76fd7db239936c3b Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Sun, 6 Mar 2016 18:02:37 +1100 Subject: Turn core_file into a proper class that gets cleaned up safely using unique_ptr Subverted somewhat by chd_file class --- src/devices/machine/serflash.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/devices/machine/serflash.cpp') diff --git a/src/devices/machine/serflash.cpp b/src/devices/machine/serflash.cpp index ebdd1dd53a9..f5a002ae929 100644 --- a/src/devices/machine/serflash.cpp +++ b/src/devices/machine/serflash.cpp @@ -77,7 +77,7 @@ void serflash_device::nvram_read(emu_file &file) int size = m_length / FLASH_PAGE_SIZE; - if (file) + if (file.is_open()) { UINT32 page; file.read(&page, 4); -- cgit v1.2.3-70-g09d2