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:
greenchili2 2023-09-30 13:38:32 -04:00 committed by GitHub
parent f427aaee8f
commit fdd5e7cea0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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