mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
fix for MSVC "warning C4717: 'device_image_interface::fread' : recursive on all control paths, function will cause runtime stack overflow" (nw)
This commit is contained in:
parent
fa26a13b8a
commit
dafb99627b
@ -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); }
|
||||
|
Loading…
Reference in New Issue
Block a user