diff --git a/libretro-common/file/retro_stat.c b/libretro-common/file/retro_stat.c index 261507d7a6..d3a2664148 100644 --- a/libretro-common/file/retro_stat.c +++ b/libretro-common/file/retro_stat.c @@ -100,9 +100,12 @@ static bool path_stat(const char *path, enum stat_mode mode, int32_t *size) if (cellFsStat(path, &buf) < 0) return false; #elif defined(_WIN32) + struct stat buf; DWORD ret = GetFileAttributes(path); if (ret == INVALID_FILE_ATTRIBUTES) return false; + if (stat(path, &buf) < 0) + return false; #else struct stat buf; if (stat(path, &buf) < 0)