Fix r29545 w.r.t sockets and friends (nw)

This commit is contained in:
Olivier Galibert 2014-04-18 09:11:11 +00:00
parent 169ad0268f
commit ec653f9969

View File

@ -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)