mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 14:42:30 +00:00
Merge pull request #1796 from heuripedes/master
(content.c) Allow empty files to be read
This commit is contained in:
commit
b08268bc44
@ -63,7 +63,7 @@ static bool read_content_file(unsigned i, const char *path, void **buf,
|
|||||||
if (!read_file(path, (void**) &ret_buf, length))
|
if (!read_file(path, (void**) &ret_buf, length))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (*length <= 0)
|
if (*length < 0)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (i != 0)
|
if (i != 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user