diff options
author | smf- <smf-@users.noreply.github.com> | 2013-12-21 09:45:08 +0000 |
---|---|---|
committer | smf- <smf-@users.noreply.github.com> | 2013-12-21 09:45:08 +0000 |
commit | dafb99627b6469aad495f0ed445bcfa4bbe1f20f (patch) | |
tree | 1479673bf64b47370940a0982906c598d76c59d9 | |
parent | fa26a13b8a3c870e0a5759dcc66f4fd9a0312ad2 (diff) |
fix for MSVC "warning C4717: 'device_image_interface::fread' : recursive on all control paths, function will cause runtime stack overflow" (nw)
-rw-r--r-- | src/emu/diimage.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/diimage.h b/src/emu/diimage.h index 0110e6353ad..24a8dd19870 100644 --- a/src/emu/diimage.h +++ b/src/emu/diimage.h @@ -176,7 +176,7 @@ public: bool has_been_created() { return m_created; } void make_readonly() { m_readonly = true; } UINT32 fread(void *buffer, UINT32 length) { check_for_file(); return core_fread(m_file, buffer, length); } - UINT32 fread(optional_shared_ptr<UINT8> &ptr, UINT32 length) { ptr.allocate(length); return fread(ptr, length); } + UINT32 fread(optional_shared_ptr<UINT8> &ptr, UINT32 length) { ptr.allocate(length); return fread(ptr.target(), length); } UINT32 fread(optional_shared_ptr<UINT8> &ptr, UINT32 length, offs_t offset) { ptr.allocate(length); return fread(ptr + offset, length - offset); } UINT32 fwrite(const void *buffer, UINT32 length) { check_for_file(); return core_fwrite(m_file, buffer, length); } int fseek(INT64 offset, int whence) { check_for_file(); return core_fseek(m_file, offset, whence); } |