mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 13:14:04 +00:00
Fix bug that was causing weirdness in Wii builds. (#15752)
Things like the info files not being read. User defined directories not sticking ( likely not detected ) and all kinds of other goodness.
This commit is contained in:
parent
f427aaee8f
commit
fdd5e7cea0
@ -923,11 +923,11 @@ int retro_vfs_stat_impl(const char *path, int32_t *size)
|
||||
if (path_buf[len - 1] == '/')
|
||||
path_buf[len - 1] = '\0';
|
||||
|
||||
free(path_buf);
|
||||
|
||||
if (stat(path_buf, &stat_buf) < 0)
|
||||
return 0;
|
||||
|
||||
free(path_buf);
|
||||
|
||||
if (size)
|
||||
*size = (int32_t)stat_buf.st_size;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user