mirror of
https://github.com/holub/mame
synced 2025-04-24 17:30:55 +03:00
Fix r29545 w.r.t sockets and friends (nw)
This commit is contained in:
parent
169ad0268f
commit
ec653f9969
@ -410,7 +410,7 @@ UINT32 core_fread(core_file *file, void *buffer, UINT32 length)
|
||||
file->back_char_tail = 0;
|
||||
|
||||
/* handle real files */
|
||||
if (file->length && file->data == NULL)
|
||||
if (file->file && file->data == NULL)
|
||||
{
|
||||
/* if we're within the buffer, consume that first */
|
||||
if (file->offset >= file->bufferbase && file->offset < file->bufferbase + file->bufferbytes)
|
||||
|
Loading…
Reference in New Issue
Block a user