Skip to content

Commit

Permalink
Fix bug that was causing weirdness in Wii builds. (#15752)
Browse files Browse the repository at this point in the history
Things like the info files not being read.  User defined directories not sticking ( likely not detected ) and all kinds of other goodness.
  • Loading branch information
greenchili2 authored Sep 30, 2023
1 parent f427aae commit fdd5e7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libretro-common/vfs/vfs_implementation.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit fdd5e7c

Please sign in to comment.