mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-24 04:29:34 -04:00
more accurate emulation of fread in memio
This commit is contained in:
parent
26876ee72d
commit
f5276845cf
@ -68,6 +68,11 @@ size_t mem_fread(void *buf, size_t size, size_t nmemb, MEMFILE *stream)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (size == 0 || nmemb == 0)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (read_eof)
|
if (read_eof)
|
||||||
{
|
{
|
||||||
stream->eof = true;
|
stream->eof = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user