mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 08:37:41 +00:00
(content.c) Allow empty files to be read
This commit is contained in:
parent
6ec01d10ae
commit
0868bf05b8
@ -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